summaryrefslogtreecommitdiff
path: root/sys/ddb/db_watch.h
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2007-02-20 11:24:33 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2007-02-20 11:24:33 +0000
commit3e901f274e66b8947db67d97ef73db5fcd107e0f (patch)
treed0ff1faed0a521d51d85e0712f136c23e7f3d58a /sys/ddb/db_watch.h
parent50a35661237dcd2063503611b5a771df988aab1b (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/ddb/db_watch.h')
0 files changed, 0 insertions, 0 deletions