2
0
mirror of git://github.com/lxc/lxc synced 2025-09-05 10:59:34 +00:00

Merge pull request #851 from tych0/set-sid-in-init

start: setsid in init task as well
This commit is contained in:
Serge Hallyn
2016-02-25 17:00:20 -08:00

View File

@@ -851,6 +851,8 @@ static int do_start(void *data)
goto out_warn_father;
}
setsid();
/* after this call, we are in error because this
* ops should not return as it execs */
handler->ops->start(handler, handler->data);