diff options
author | bluhm <bluhm@openbsd.org> | 2018-09-10 10:36:01 +0000 |
---|---|---|
committer | bluhm <bluhm@openbsd.org> | 2018-09-10 10:36:01 +0000 |
commit | a9955862d6f72f7052d014379ab8b79e9489dbd5 (patch) | |
tree | 02467827ba66427cc1a98054af6bded282e79d61 /usr.sbin/vmd/proc.h | |
parent | fix typo in the length of the essid we want to switch to (diff) | |
download | wireguard-openbsd-a9955862d6f72f7052d014379ab8b79e9489dbd5.tar.xz wireguard-openbsd-a9955862d6f72f7052d014379ab8b79e9489dbd5.zip |
During the fork+exec implementation, daemon(3) was moved after
proc_init(). As a consequence vmd(8) child processes did not detach
from the terminal anymore. Dup /dev/null to the stdio file descriptors
in the children.
OK mlarkin@ reyk@
Diffstat (limited to 'usr.sbin/vmd/proc.h')
-rw-r--r-- | usr.sbin/vmd/proc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmd/proc.h b/usr.sbin/vmd/proc.h index 01361076f54..5dfccb9cf09 100644 --- a/usr.sbin/vmd/proc.h +++ b/usr.sbin/vmd/proc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.h,v 1.15 2018/08/05 08:20:54 mestre Exp $ */ +/* $OpenBSD: proc.h,v 1.16 2018/09/10 10:36:01 bluhm Exp $ */ /* * Copyright (c) 2010-2015 Reyk Floeter <reyk@openbsd.org> @@ -156,7 +156,7 @@ struct privsep_fd { #define PROC_MAX_INSTANCES 32 /* proc.c */ -void proc_init(struct privsep *, struct privsep_proc *, unsigned int, +void proc_init(struct privsep *, struct privsep_proc *, unsigned int, int, int, char **, enum privsep_procid); void proc_kill(struct privsep *); void proc_connect(struct privsep *ps); |