path: root/src/diag.c
diff options
authorSergey Poznyakoff <gray@gnu.org.ua>2009-10-16 00:05:23 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2009-10-16 01:16:12 +0300
commita0631c9ac2c13c3ef1db027a490620504a287d3f (patch)
tree5cc3c9d5b588974eee29d17c724dbdd8551dfdc8 /src/diag.c
parent9670b8cada0df307c6ffd9be1b14f5dfd51cc958 (diff)
Various improvements.
* configure.ac (AC_CHECK_FUNCS): Check for vsyslog. * src/diag.c (syslog_printer) [!HAVE_VSYSLOG]: call syslog. * src/pies.c (component_keywords): Remove settle-timeout, replace it with pass-fd-timeout. (main): Force syslog logging if !foreground. Do not close first three fds before restarting if log_to_stderr is set. * src/pies.h (DEFAULT_PASS_FD_TIMEOUT): New constant. (struct component): Replace settle_timeout with pass_fd_timeout. All uses changed. (pass_fd): Pass timeout as argument. * src/progman.c (prog_start): Remove hardcoded sleep before calling pass_fd. Update call to pass_fd. (prog_start_prerequisites): Remove handling of settle_timeout. * src/socket.c (open_unix_socket): Remove. (pass_fd): Rewrite. * doc/pies.texi: Update.
Diffstat (limited to 'src/diag.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/diag.c b/src/diag.c
index 8ae3911..c377b45 100644
--- a/src/diag.c
+++ b/src/diag.c
@@ -28,6 +28,7 @@ syslog_printer (int prio, const char *fmt, va_list ap)
char buf[128];
vsnprintf (buf, sizeof buf, fmt, ap);
+ syslog (prio, "%s", buf);

Return to:

Send suggestions and report system problems to the System administrator.