FS#24995 - [initscripts] minilogd broken?

Attached to Project: Arch Linux
Opened by Kristoffer Tidemann (ktide) - Sunday, 03 July 2011, 09:08 GMT
Last edited by Tom Gundersen (tomegun) - Sunday, 06 November 2011, 01:12 GMT
Task Type Bug Report
Category Arch Projects
Status Closed
Assigned To Tom Gundersen (tomegun)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details


poll([{fd=4, events=POLLIN|POLLPRI}], 1, 500) = 0 (Timeout)
stat("/dev/log", {st_mode=S_IFSOCK|0755, st_size=0, ...}) = 0
poll([{fd=4, events=POLLIN|POLLPRI}], 1, 500) = 0 (Timeout)
stat("/dev/log", {st_mode=S_IFSOCK|0666, st_size=0, ...}) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({2, 0}, 0x7fff7ec87df0) = 0
socket(PF_FILE, SOCK_STREAM, 0) = 5
connect(5, {sa_family=AF_FILE, path="/dev/log"}, 110) = -1 EPROTOTYPE (Protocol wrong type for socket)
exit_group(0) = ?
Process 19615 detached

Is the actual passing of log messages to the new syslog actually wanted or is it solely used to so that stuff doesn't die/block on /dev/log not existing?

If functionality is not needed I suggest a comment in the initscripts to state it's use there.

This task depends upon

Closed by  Tom Gundersen (tomegun)
Sunday, 06 November 2011, 01:12 GMT
Reason for closing:  Won't fix
Additional comments about closing:  minilogd is now removed
Comment by Dan McGee (toofishes) - Friday, 15 July 2011, 21:36 GMT
We should probably be using SOCK_DGRAM anyway; see  FS#22153 . I'm not fully sure when/where you ran minilogd here? Was syslog-ng or any other logger running? I'll try to take a look at the code and see what is up, but where and how was this strace output captured?
Comment by Tom Gundersen (tomegun) - Saturday, 29 October 2011, 00:16 GMT
Due to this bug, and the questionable usefulness of minilogd in general (look at the apps that might possibly print something to syslog before the real syslog daemon is started), I have proposed simply removing minilogd from the next initscripts release.

Loading...