Circular log buffer clears when log fills up
Jari Takkala
Jari.Takkala at Q9.com
Fri Jun 1 18:22:00 UTC 2007
On Friday, June 01, 2007 2:06 PM, busybox-bounces at busybox.net wrote:
> Is this a known bug? Thanks!
>
> Jari
The bug appears to be in logread. I can read all the messages in the shared memory segment by specifying the shmid and using a simple perl program. logread only returns 6279 bytes, the following perl code returns the full log buffer.
# logread | wc
58 1015 6279
# perl | wc
$SHM_MAX = 16384;
$id = 0;
shmread $id, $message, 0, $SHM_MAX;
print "\n$message\n";
151 2659 16386
# ps ax | grep syslog
373 ? Ss 0:01 /sbin/syslogd -m 0 -C16
Regards,
Jari
More information about the busybox
mailing list