[lxc-devel] [lxc/lxc] 135301: commands: handle epipe
GitHub
noreply at github.com
Tue Mar 25 22:40:24 UTC 2014
Branch: refs/heads/stable-1.0
Home: https://github.com/lxc/lxc
Commit: 13530116aa363b6ef0cb4fe2bf08fd3a69458f55
https://github.com/lxc/lxc/commit/13530116aa363b6ef0cb4fe2bf08fd3a69458f55
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