]> Cypherpunks repositories - gostls13.git/commit
syscall: relocate linux death signal code
authorAndrew Williams <williams.andrew@gmail.com>
Sun, 25 Jan 2015 18:53:34 +0000 (12:53 -0600)
committerIan Lance Taylor <iant@golang.org>
Tue, 12 May 2015 19:34:46 +0000 (19:34 +0000)
commit9b379d7e04750bbf6615cdfc1783db53c3d9bdc9
tree43b1785090d046177cf32da1ff3115d8dacb493c
parent8552047a32cccccc1c376e49048c5a22494b7611
syscall: relocate linux death signal code

Fix bug on Linux SysProcAttr handling: setting both Pdeathsig and
Credential caused Pdeathsig to be ignored. This is because the kernel
clears the deathsignal field when performing a setuid/setgid
system call.

Avoid this by moving Pdeathsig handling after Credential handling.

Fixes #9686

Change-Id: Id01896ad4e979b8c448e0061f00aa8762ca0ac94
Reviewed-on: https://go-review.googlesource.com/3290
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/syscall/exec_linux.go
src/syscall/syscall_linux_test.go [new file with mode: 0644]