diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2016-10-06 18:48:42 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2016-10-06 18:48:42 +0000 |
commit | 222246a9998aa07324e6cc8a1c47354252e15621 (patch) | |
tree | 17dc07a1a0e85c955c145d1dd2dc48026c79a932 /usr.sbin/vmd/vmd.c | |
parent | 0daee0d42432ef125cbb739468ebe7604f0eeb12 (diff) |
Terminate VMs on shutdown of vmd instead of leaving them running as
undead VM processes.
OK mlarkin@
Diffstat (limited to 'usr.sbin/vmd/vmd.c')
-rw-r--r-- | usr.sbin/vmd/vmd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/vmd/vmd.c b/usr.sbin/vmd/vmd.c index c8815be76e0..cab5400a32d 100644 --- a/usr.sbin/vmd/vmd.c +++ b/usr.sbin/vmd/vmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmd.c,v 1.32 2016/10/05 17:30:13 reyk Exp $ */ +/* $OpenBSD: vmd.c,v 1.33 2016/10/06 18:48:41 reyk Exp $ */ /* * Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org> @@ -52,8 +52,7 @@ static struct privsep_proc procs[] = { /* Keep "priv" on top as procs[0] */ { "priv", PROC_PRIV, NULL, priv }, { "control", PROC_CONTROL, vmd_dispatch_control, control }, - { "vmm", PROC_VMM, vmd_dispatch_vmm, vmm }, - + { "vmm", PROC_VMM, vmd_dispatch_vmm, vmm, vmm_shutdown }, }; /* For the privileged process */ |