[lxc-devel] [lxc/lxc] 13353d: daemonized start: exit children on failure, don't ...

GitHub noreply at github.com
Fri Jun 12 21:12:11 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 13353dc420e3a7b6ff1234b0ce9fbd3a1802837c
      https://github.com/lxc/lxc/commit/13353dc420e3a7b6ff1234b0ce9fbd3a1802837c
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2015-06-12 (Fri, 12 Jun 2015)

  Changed paths:
    M src/lxc/lxccontainer.c

  Log Message:
  -----------
  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 at ubuntu.com>
Acked-by: Tycho Andersen <tycho.andersen at canonical.com>




More information about the lxc-devel mailing list