]> git.ipfire.org Git - thirdparty/lxc.git/commit
daemonized start: exit children on failure, don't return
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 11 Jun 2015 04:08:15 +0000 (23:08 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 12 Jun 2015 21:11:53 +0000 (16:11 -0500)
commit13353dc420e3a7b6ff1234b0ce9fbd3a1802837c
tree24de453b8fec397025df31a0be095558c6e4a7f7
parent2badf64b39144344ab44d63724455edfb57fc14b
daemonized start: exit children on failure, don't return

When starting a daemonized container, only the original parent
thread should return to the caller.  The first forked child
immediately exits after forking, but the grandparent child
was in some places returning on error - causing a second instance
of the calling function.

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