diff options
author | kn <kn@cvs.openbsd.org> | 2021-02-26 18:28:08 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2021-02-26 18:28:08 +0000 |
commit | f976f336c2d873660d89c90804321dc4122482a2 (patch) | |
tree | cd13d367acbb43624604e634bebec027f6bce08f /sbin/resolvd | |
parent | 5fa3a75a7abd37082dd13d9cdbb1689171377690 (diff) |
Ignore SIGHUP
It should always run and there is no reload semantic.
OK deraadt
Diffstat (limited to 'sbin/resolvd')
-rw-r--r-- | sbin/resolvd/resolvd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sbin/resolvd/resolvd.c b/sbin/resolvd/resolvd.c index dbf6787f0a9..01c9da57795 100644 --- 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"); |