summaryrefslogtreecommitdiffstats
path: root/usr.sbin/switchd/switchd.c
diff options
context:
space:
mode:
authorakoshibe <akoshibe@openbsd.org>2018-09-10 13:21:39 +0000
committerakoshibe <akoshibe@openbsd.org>2018-09-10 13:21:39 +0000
commit8a73e050f051c27ad8c86f7ba329a31e8809e550 (patch)
treeb8465a885fa5af75a4cf831add19bb7800629c8c /usr.sbin/switchd/switchd.c
parentfix typos (diff)
downloadwireguard-openbsd-8a73e050f051c27ad8c86f7ba329a31e8809e550.tar.xz
wireguard-openbsd-8a73e050f051c27ad8c86f7ba329a31e8809e550.zip
Mirror bluhm's fixes for proc.c daemons to dup /dev/null for child processes
in switchd(8). OK henning@ bluhm@
Diffstat (limited to 'usr.sbin/switchd/switchd.c')
-rw-r--r--usr.sbin/switchd/switchd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/switchd/switchd.c b/usr.sbin/switchd/switchd.c
index 5d4fde3a272..c42ee62fad8 100644
--- a/usr.sbin/switchd/switchd.c
+++ b/usr.sbin/switchd/switchd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: switchd.c,v 1.15 2017/01/09 14:49:22 reyk Exp $ */
+/* $OpenBSD: switchd.c,v 1.16 2018/09/10 13:21:39 akoshibe Exp $ */
/*
* Copyright (c) 2013-2016 Reyk Floeter <reyk@openbsd.org>
@@ -184,7 +184,7 @@ main(int argc, char *argv[])
ps->ps_title[proc_id] = title;
/* Only the parent returns. */
- proc_init(ps, procs, nitems(procs), argc0, argv, proc_id);
+ proc_init(ps, procs, nitems(procs), debug, argc0, argv, proc_id);
if (!debug && daemon(0, 0) == -1)
fatal("failed to daemonize");