]> git.ipfire.org Git - thirdparty/lxc.git/commit
commands: return -1 on lxc_cmd_get_init_pid() err
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 25 Aug 2018 04:17:49 +0000 (06:17 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 28 Aug 2018 18:12:42 +0000 (20:12 +0200)
commit8ed8a6265bcd8958f0d026b2168bd6ee2ea61b68
tree653972d826737140372dd7aad219c4615b5ff185
parent7ee4b4b8f0a8b04cfa4c50d54e755b4bd95a38c3
commands: return -1 on lxc_cmd_get_init_pid() err

A while back the whole lxc_cmd() infrastructure was changed to return
meaningful negative error codes. But lxc_cmd_get_init_pid() should always
return -1. Make it so!

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Reported-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/commands.c