diff options
author | ajs <ajs> | 2004-11-28 23:00:01 +0000 |
---|---|---|
committer | ajs <ajs> | 2004-11-28 23:00:01 +0000 |
commit | 589bb057978aacfa03e321f379ca4f592a1e4451 (patch) | |
tree | f576a755c40032e9a6b2874ac250a3facc6991bf /lib/pid_output.c | |
parent | 3d2b4c168125994976a46ac153f83dc7de6ea354 (diff) | |
download | quagga-589bb057978aacfa03e321f379ca4f592a1e4451.tar.bz2 quagga-589bb057978aacfa03e321f379ca4f592a1e4451.tar.xz |
2004-11-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* log.h: Remove several unused fields from struct zlog. Add comments
for other fields, and add one new field syslog_options that is
used in the new syslog_sigsafe implementation.
* log.c: (syslog_sigsafe) New function to send syslog messages in
an async-signal safe way that can be used inside a signal handler.
(syslog_connect) New function to connect to syslog daemon inside a
signal handler. This function supports only systems where /dev/log
is a unix datagram socket (e.g. not Solaris).
(zlog_signal) Call syslog_sigsafe if syslog logging is enabled.
(zlog_backtrace_sigsafe) Call syslog_sigsafe if syslog logging is
enabled.
(openzlog) Save syslog_options for use in syslog_sigsafe.
(num_append) Fix bug: handle 0 properly.
(hex_append) New function to print a u_long in hex format.
Diffstat (limited to 'lib/pid_output.c')
0 files changed, 0 insertions, 0 deletions