]> Cypherpunks repositories - gostls13.git/commit
syscall: check recorded version of ppid instead of 1
authorDavid Crawshaw <crawshaw@golang.org>
Thu, 11 Dec 2014 15:25:32 +0000 (10:25 -0500)
committerDavid Crawshaw <crawshaw@golang.org>
Mon, 22 Dec 2014 21:21:10 +0000 (21:21 +0000)
commit401b20234cc56ac771a0daeec53c200f752500a7
tree93c4f26495fa62e69cc2edacaf67c89276705849
parent2a617d46f3ed39a71d8af8fb004fdfe8711160c2
syscall: check recorded version of ppid instead of 1

Handles the case where the parent is pid 1 (common in docker
containers).

Attempted and failed to write a test for this.

Fixes #9263.

Change-Id: I5c6036446c99e66259a4fab1660b6a594f875020
Reviewed-on: https://go-review.googlesource.com/1372
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/syscall/exec_linux.go