]> git.proxmox.com Git - mirror_lxc.git/commit
commands: return -ECONNRESET to caller
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 6 Dec 2017 14:33:23 +0000 (15:33 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 6 Dec 2017 15:01:23 +0000 (16:01 +0100)
commit6b7f85cbcdce8bd5d6b1c4c719ae776d6b3ffb06
treecc304e11f8c36ca2e68b2a114cf58441f109f43c
parent44552fb2b794573334136209dc44a4270f3acf45
commands: return -ECONNRESET to caller

Callers can then make a decision whether they want to consider the peer closing
the connection an error or not. For example, a c->wait(c, "STOPPED", -1) call
can then consider a ECONNRESET not an error but rather see it - correctly - as
a container exiting before being able to register a state client.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/commands.c