]> 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:51:18 +0000 (09:51 +0200)
commit967b34569424d2ec7ae7f27e64b1ad9bb2ea124b
tree4b70813e9805ba0724e7c892c10ea34879e9115c
parent57d6d6718dab8913039cb5fba74771e36cdeb5df
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