]> git.ipfire.org Git - thirdparty/lxc.git/commit
fix userns helper error handling
authorTycho Andersen <tycho@tycho.ws>
Fri, 9 Feb 2018 13:26:31 +0000 (13:26 +0000)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 12 Feb 2018 16:21:32 +0000 (17:21 +0100)
commita05c7bac914a20ffbc5a9c543dca90ec22600209
treeb8d7c65be20ee996f492423f4fad398636379658
parenta6036740c322e272a37bd656ba14d4a704fde125
fix userns helper error handling

In both of these cases if there is actually an error, we won't close the
pipe and the api call will hang. Instead, let's be sure to close the pipe
before waiting, so that it doesn't hang.

Signed-off-by: Tycho Andersen <tycho@tycho.ws>
src/lxc/conf.c