summaryrefslogtreecommitdiff
path: root/lib/daemon.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2001-11-13 13:40:05 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2001-11-13 13:40:05 +0000
commit84acb01190ff9aced2aaf9f51d715be0f22ad1fc (patch)
treef7c688ce0534b05258100ac396096556f19a6041 /lib/daemon.c
parent0bd645c9d4ece7aad5c89271421636bb41083bff (diff)
downloadmailutils-84acb01190ff9aced2aaf9f51d715be0f22ad1fc.tar.gz
mailutils-84acb01190ff9aced2aaf9f51d715be0f22ad1fc.tar.bz2
Use of errx() is a bsd-ism. Fixed
Diffstat (limited to 'lib/daemon.c')
-rw-r--r--lib/daemon.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/daemon.c b/lib/daemon.c
index a17dc4710..057e56370 100644
--- a/lib/daemon.c
+++ b/lib/daemon.c
@@ -27,7 +27,10 @@
* SUCH DAMAGE.
*/
-#include <config.h>
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <signal.h>
@@ -97,7 +100,10 @@ waitdaemon_timeout (int signo)
left = alarm (0);
signal (SIGALRM, SIG_DFL);
if (left == 0)
- errx (1, "timed out waiting for child");
+ {
+ fprintf (stderr, "timed out waiting for child\n");
+ exit (1);
+ }
}
/* waitdaemon is like daemon, but optionally the parent pause up

Return to:

Send suggestions and report system problems to the System administrator.