artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
964735a
)
Ignore SIGHUP
author
kn
<kn@openbsd.org>
Fri, 26 Feb 2021 18:28:07 +0000
(18:28 +0000)
committer
kn
<kn@openbsd.org>
Fri, 26 Feb 2021 18:28:07 +0000
(18:28 +0000)
It should always run and there is no reload semantic.
OK deraadt
sbin/resolvd/resolvd.c
patch
|
blob
|
history
diff --git
a/sbin/resolvd/resolvd.c
b/sbin/resolvd/resolvd.c
index
dbf6787
..
01c9da5
100644
(file)
--- a/
sbin/resolvd/resolvd.c
+++ b/
sbin/resolvd/resolvd.c
@@
-31,6
+31,7
@@
#include <errno.h>
#include <fcntl.h>
#include <event.h>
+#include <signal.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
@@
-200,6
+201,8
@@
main(int argc, char *argv[])
}
#endif
+ signal(SIGHUP, SIG_IGN);
+
if ((routesock = socket(AF_ROUTE, SOCK_RAW, 0)) == -1)
lerr(1, "route socket");