Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
84acb011
...
84acb01190ff9aced2aaf9f51d715be0f22ad1fc
authored
2001-11-13 13:40:05 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Use of errx() is a bsd-ism. Fixed
1 parent
0bd645c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
lib/daemon.c
lib/daemon.c
View file @
84acb01
...
...
@@ -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
...
...
Please
register
or
sign in
to post a comment