artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01fc3e5
)
If fork fails, print an error message before exit.
author
bluhm
<bluhm@openbsd.org>
Fri, 12 Jun 2015 00:54:28 +0000
(
00:54
+0000)
committer
bluhm
<bluhm@openbsd.org>
Fri, 12 Jun 2015 00:54:28 +0000
(
00:54
+0000)
OK doug@ djm@
usr.sbin/syslogd/syslogd.c
patch
|
blob
|
history
diff --git
a/usr.sbin/syslogd/syslogd.c
b/usr.sbin/syslogd/syslogd.c
index
9d65df7
..
0ed5513
100644
(file)
--- a/
usr.sbin/syslogd/syslogd.c
+++ b/
usr.sbin/syslogd/syslogd.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: syslogd.c,v 1.16
1 2015/03/30 09:21:42 tobias Exp $
*/
+/* $OpenBSD: syslogd.c,v 1.16
2 2015/06/12 00:54:28 bluhm Exp $
*/
/*
* Copyright (c) 1983, 1988, 1993, 1994
@@
-564,7
+564,7
@@
main(int argc, char *argv[])
switch(fork()) {
case -1:
- e
xit(1
);
+ e
rr(1, "fork"
);
case 0:
setsid();
close(lockpipe[0]);