[BusyBox] Please modify "logread" in Busybox so that it flushes its output
Paul Fox
pgf at brightstareng.com
Thu Aug 18 12:39:30 UTC 2005
>
> Hi - I'd like to set up a Busybox system to immediately trigger events to o=
> ccur
> if certain events are logged. The current code makes that hard to do.
>
> For example, I'd like to use "logread -f" to monitor output;
> the problem is that "logread -f" does NOT flush its output immediately.
>
> Thus, in trunk/busybox/sysklogd/logread.c, would you please modify
> the code to flushes the output after printf's? For example, please change:
shouldn't this behavior be controlled by a command-line argument
to control whether output is unbuffered or not?
paul
> }
> free(buf_data);
> #endif
> } while (follow);
>
> So that after the "#endif" add this:
> fflush(stdout);
>
> Thanks.
>
> --- David A. Wheeler
>
> _______________________________________________
> busybox mailing list
> busybox at mail.busybox.net
> http://busybox.net/mailman/listinfo/busybox
>
> --===============1379143130==--
=---------------------
paul fox, pgf at brightstareng.com
More information about the busybox
mailing list