diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2007-02-20 11:24:33 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2007-02-20 11:24:33 +0000 |
commit | 3e901f274e66b8947db67d97ef73db5fcd107e0f (patch) | |
tree | d0ff1faed0a521d51d85e0712f136c23e7f3d58a /sys/uvm/uvm_swap.c | |
parent | 50a35661237dcd2063503611b5a771df988aab1b (diff) |
implement logging to other program's stdin.
if the target is like "| /path/to/program", syslogd forks and execs program
and sends the selected log messages to program's stdin.
uses a socketpair, grows the receive buffer on the reader side and has the
socket nonblocking on syslog'd side to prevent syslogd blocking.
I'm using that here to feed logsurfer from ports for automated log analysis,
werks beautifully.
lots of input & help mpf, ok mpf djm "no objections" millert
Diffstat (limited to 'sys/uvm/uvm_swap.c')
0 files changed, 0 insertions, 0 deletions