[lxc-devel] [lxc/lxc] 6168ff: commands: handle epipe

GitHub noreply at github.com
Tue Mar 25 22:40:04 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 6168ff15aac16bcccbcf22b4ba915870844e96a4
      https://github.com/lxc/lxc/commit/6168ff15aac16bcccbcf22b4ba915870844e96a4
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M src/lxc/af_unix.c
    M src/lxc/commands.c

  Log Message:
  -----------
  commands: handle epipe

If we start a lxc_wait on a container while it is exiting, it is
possible that we open the command socket, then the command socket
monitor closes all its mainloop sockets and exit, then we send our
credentials. Then we get killed by SIGPIPE.

Handle that case, recognizing that if we get sigpipe then the
container is (now) stopped.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>




More information about the lxc-devel mailing list