[BusyBox-cvs] [BusyBox 0000389]: Please modify "logread" in Busybox so that it flushes its output

bugs at busybox.net bugs at busybox.net
Wed Aug 17 23:22:55 UTC 2005


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=389 
====================================================================== 
Reported By:                dwheeler
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   389
Category:                   New Features
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             08-17-2005 16:22 PDT
Last Modified:              08-17-2005 16:22 PDT
====================================================================== 
Summary:                    Please modify "logread" in Busybox so that it
flushes its output
Description: 
Hi - I'd like to set up a Busybox system to immediately trigger events to
occur
if certain events are logged.  In particular,
I'd like to use "logread -f" to monitor output.
The problem is that "logread -f" does NOT flush its output immediately,
so I can't use it as it is.

Thus, in trunk/busybox/sysklogd/logread.c, would you please modify
the code to flushes the output after printf's? For example, please
change:
}
free(buf_data);
#endif
} while (follow);

So that after the "#endif" add this:
fflush(stdout);

Thanks.

====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-17-05 16:22  dwheeler       New Issue                                    
08-17-05 16:22  dwheeler       Status                   new => assigned     
08-17-05 16:22  dwheeler       Assigned To               => BusyBox         
======================================================================




More information about the busybox-cvs mailing list