From a9955862d6f72f7052d014379ab8b79e9489dbd5 Mon Sep 17 00:00:00 2001 From: bluhm Date: Mon, 10 Sep 2018 10:36:01 +0000 Subject: 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@ --- usr.sbin/vmd/proc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/vmd/proc.h') 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 @@ -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); -- cgit v1.2.3-59-g8ed1b