mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
c3a6de9ec8
Managed containerd processes are executed with SysProcAttr.Pdeathsig set to syscall.SIGKILL so that the managed containerd is automatically killed along with the daemon. At least, that is the intention. In practice, the signal is sent to the process when the creating _OS thread_ dies! If a goroutine exits while locked to an OS thread, the Go runtime will terminate the thread. If that thread happens to be the same thread which the subprocess was started from, the subprocess will be signaled. Prevent the journald driver from sometimes unintentionally killing child processes by ensuring that all runtime.LockOSThread() calls are paired with runtime.UnlockOSThread(). Signed-off-by: Cory Snider <csnider@mirantis.com> |
||
---|---|---|
.. | ||
internal | ||
doc.go | ||
journald.go | ||
journald_test.go | ||
read.go | ||
read_test.go |