]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc-checkpoint: close stdout/stdin when daemonizing
authorTycho Andersen <tycho.andersen@canonical.com>
Tue, 30 Sep 2014 21:35:13 +0000 (21:35 +0000)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 8 Oct 2014 20:18:53 +0000 (15:18 -0500)
commit7943ec56e9c32d5dc2c187730d0a7b784c494d2a
tree08659770e4d8ebe075f524ab9e647051e30f74c5
parent2ba7a4298964e618e3a81a42187174b9b7921764
lxc-checkpoint: close stdout/stdin when daemonizing

If we don't close these running lxc-checkpoint via:

ssh host "sudo lxc-checkpoint ..."

just hangs. We leave stderr open so that subesquent errors will print correctly
(and also because for whatever reason it doesn't break ssh :).

Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxc_checkpoint.c