]> git.ipfire.org Git - thirdparty/lxc.git/commit
attach: don't shutdown ipc socket in child 2619/head
authorStephen Barber <smbarber@chromium.org>
Tue, 18 Sep 2018 00:31:22 +0000 (17:31 -0700)
committerStephen Barber <smbarber@chromium.org>
Tue, 18 Sep 2018 03:07:43 +0000 (20:07 -0700)
commit5dc59a075516ccbcdd6333d6630d6fee578f5fe0
treeecc29d07108e0cea05adbcc15cc90cd587ae911e
parentde6af06271e1b135bbcd9415e6243f51701ebbe5
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