]> git.ipfire.org Git - thirdparty/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>
Fri, 15 Dec 2017 11:54:55 +0000 (12:54 +0100)
commitf44c23639bdcb2a7676ca08f505fae9847a01e90
treeee1b9ccf3d2c2101f55c903cd0fb1a09dac0bceb
parent38e48fed943d96bc17b85e2da79f1558e8bffa26
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