]> git.ipfire.org Git - thirdparty/lxc.git/commit
set close-on-exec flag on command socket
authorDaniel Lezcano <daniel.lezcano@free.fr>
Thu, 2 Jun 2011 07:50:38 +0000 (09:50 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Thu, 2 Jun 2011 07:50:38 +0000 (09:50 +0200)
commit9ccb2dbcd2c437ca8cc867814ba0412a3fe55420
tree8a4537331b872b64ea0a278eebce15fefa8b2c40
parentd755a9e6b4c1c9e968df8ffe902881a8d7516aaa
set close-on-exec flag on command socket

When we accept a connection, we have to set the close-on-exec flag,
otherwise that won't be possible to reboot a container through a
lxc-console command.

Reported-by: Katoh Yasufumi <karma@jazz.email.ne.jp>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/commands.c