]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/start.c
close prctl window
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 6 Jul 2010 19:26:31 +0000 (21:26 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 6 Jul 2010 19:26:31 +0000 (21:26 +0200)
commit743ecd2efba6b2d2c23a0fdb2fe8958c81c73561
tree7a762ce05742ed837c941e1500d247daba8b0ede
parentcba56779c893aac20d42d65cfa10db966c24d9b7
close prctl window

If the pdeath signal is set after the synchro we have a window where
the parent exits with the pdeath signal not set.

In order to avoid that, we have to move the prctl before the synchro with
the parent so if the parent exits before we can set the pdeath signal, the
synchro will fail in any case and the container startup will be aborted.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/start.c