[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#606280: busybox-syslogd: /etc/init.d/busybox-klogd spews garbage on stderr



Package: busybox-syslogd
Severity: minor

The `running' shell function in this script (also used in
/etc/init.d/busybox-syslogd) suffers from a minor race-condition that
causes it to emit irrelevant messages on stderr: the /proc/[1-9]*/stat
glob is expanded first and then passed to `cut' which then has
to open those files, but some of them will have disappeared in
the mean time.
A simple fix is to redirect stderr to /dev/null.
Maybe a better fix is to juunk this `running' function and use one of
the standard thingies like start-stop-daemon instead.


	Stefan


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable'), (10, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.36-rc6-686 (SMP w/2 CPU cores)
Locale: LANG=fr_CH.UTF-8, LC_CTYPE=fr_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



Reply to: