Commit 84acb011 84acb01190ff9aced2aaf9f51d715be0f22ad1fc by Sergey Poznyakoff

Use of errx() is a bsd-ism. Fixed

1 parent 0bd645c9
...@@ -27,7 +27,10 @@ ...@@ -27,7 +27,10 @@
27 * SUCH DAMAGE. 27 * SUCH DAMAGE.
28 */ 28 */
29 29
30 #include <config.h> 30 #ifdef HAVE_CONFIG_H
31 # include <config.h>
32 #endif
33 #include <stdio.h>
31 #include <fcntl.h> 34 #include <fcntl.h>
32 #include <unistd.h> 35 #include <unistd.h>
33 #include <signal.h> 36 #include <signal.h>
...@@ -97,7 +100,10 @@ waitdaemon_timeout (int signo) ...@@ -97,7 +100,10 @@ waitdaemon_timeout (int signo)
97 left = alarm (0); 100 left = alarm (0);
98 signal (SIGALRM, SIG_DFL); 101 signal (SIGALRM, SIG_DFL);
99 if (left == 0) 102 if (left == 0)
100 errx (1, "timed out waiting for child"); 103 {
104 fprintf (stderr, "timed out waiting for child\n");
105 exit (1);
106 }
101 } 107 }
102 108
103 /* waitdaemon is like daemon, but optionally the parent pause up 109 /* waitdaemon is like daemon, but optionally the parent pause up
......