summaryrefslogtreecommitdiff
path: root/usr.sbin/vmd/vmm.c
diff options
context:
space:
mode:
authorMartijn van Duren <martijn@cvs.openbsd.org>2018-04-13 17:12:45 +0000
committerMartijn van Duren <martijn@cvs.openbsd.org>2018-04-13 17:12:45 +0000
commite05243f6452b5d85d80e2bc606a237e9d8710611 (patch)
tree8d3d5cbf1f2760e99f4cbbebecacd73e53ada6dc /usr.sbin/vmd/vmm.c
parentfccebb05c34a76a5a7a79b282a4fba0d61dcc5af (diff)
Close socket from vmm to parent after forking to vm process.
Ok ccardenas@
Diffstat (limited to 'usr.sbin/vmd/vmm.c')
-rw-r--r--usr.sbin/vmd/vmm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/vmd/vmm.c b/usr.sbin/vmd/vmm.c
index 77ae1eff456..9ff3cb6d692 100644
--- a/usr.sbin/vmd/vmm.c
+++ b/usr.sbin/vmd/vmm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmm.c,v 1.80 2018/02/05 05:01:08 mlarkin Exp $ */
+/* $OpenBSD: vmm.c,v 1.81 2018/04/13 17:12:44 martijn Exp $ */
/*
* Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
@@ -664,6 +664,7 @@ vmm_start_vm(struct imsg *imsg, uint32_t *id)
} else {
/* Child */
close(fds[0]);
+ close(PROC_PARENT_SOCK_FILENO);
ret = start_vm(vm, fds[1]);