aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/osutil/osutil_windows.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-11-16 12:42:30 +0100
committerDmitry Vyukov <dvyukov@google.com>2017-11-16 12:48:02 +0100
commitc4d43f47732557a32357a36d6c4276707e5994b1 (patch)
tree1a02777902c6dc71463b19cc285516f29638bf03 /pkg/osutil/osutil_windows.go
parent4bc654f91141ca34b336a1f1ae164c851e66c47c (diff)
pkg/osutil: don't leace runaway processes
When manager is stopped there are sometimes runaway qemu processes still running. Set PDEATHSIG for all subprocesses. We never need child processes outliving parents.
Diffstat (limited to 'pkg/osutil/osutil_windows.go')
-rw-r--r--pkg/osutil/osutil_windows.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/osutil/osutil_windows.go b/pkg/osutil/osutil_windows.go
index 9919689d0..4a00fe0c2 100644
--- a/pkg/osutil/osutil_windows.go
+++ b/pkg/osutil/osutil_windows.go
@@ -1,11 +1,14 @@
// Copyright 2017 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+// +build !appengine
+
package osutil
import (
"fmt"
"os"
+ "os/exec"
"syscall"
)
@@ -33,3 +36,6 @@ func ProcessExitStatus(ps *os.ProcessState) int {
func ProcessSignal(p *os.Process, sig int) bool {
return false
}
+
+func setPdeathsig(cmd *exec.Cmd) {
+}