]> git.ipfire.org Git - thirdparty/lxc.git/commit
attach: don't shutdown ipc socket in child
authorStephen Barber <smbarber@chromium.org>
Tue, 18 Sep 2018 00:31:22 +0000 (17:31 -0700)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 10 Dec 2018 15:29:36 +0000 (16:29 +0100)
commit4523e218410946cead3fbad1de225fc14caf1e09
treed8af0b6f6b50ebc32940dc2d1432a15c1e580112
parent0c0f00595f630770447364c7ee7802b534a8def6
attach: don't shutdown ipc socket in child

shutdown() affects sockets even across forked processes. The
attached child process doesn't have any interest in using the
IPC socket, so just close it in the child process and let the
intermediate process handle shutting it down.

This fixes a bug seen with lxc exec in crbug.com/884244

Signed-off-by: Stephen Barber <smbarber@chromium.org>
src/lxc/attach.c