summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/platform
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-10-25 18:22:56 +0000
committergVisor bot <gvisor-bot@google.com>2019-10-25 18:22:56 +0000
commitc2a8262f3b0d50adc0c4100010e1cb413b44701d (patch)
treee2295e48e57d1729c0a27d468ee9541d01b83ab0 /pkg/sentry/platform
parent0f55df21b07b92ce5020e6306807fb1bfd8d50c3 (diff)
parentfd598912bee1965c32dee1a5933678ed34e768bc (diff)
Merge release-20190806.1-325-gfd59891 (automated)
Diffstat (limited to 'pkg/sentry/platform')
-rw-r--r--pkg/sentry/platform/ptrace/subprocess.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/sentry/platform/ptrace/subprocess.go b/pkg/sentry/platform/ptrace/subprocess.go
index b699b057d..ddb1f41e3 100644
--- a/pkg/sentry/platform/ptrace/subprocess.go
+++ b/pkg/sentry/platform/ptrace/subprocess.go
@@ -335,7 +335,8 @@ func (t *thread) unexpectedStubExit() {
// these cases, we don't need to panic. There is no reasons to
// think that something wrong in gVisor.
log.Warningf("The ptrace stub process %v has been killed by SIGKILL.", t.tgid)
- syscall.Kill(os.Getpid(), syscall.SIGKILL)
+ pid := os.Getpid()
+ syscall.Tgkill(pid, pid, syscall.Signal(syscall.SIGKILL))
}
t.dumpAndPanic(fmt.Sprintf("wait failed: the process %d:%d exited: %x (err %v)", t.tgid, t.tid, msg, err))
}