]> git.ipfire.org Git - thirdparty/lxc.git/commit
fix userns helper error handling 2149/head
authorTycho Andersen <tycho@tycho.ws>
Fri, 9 Feb 2018 13:26:31 +0000 (13:26 +0000)
committerTycho Andersen <tycho@tycho.ws>
Fri, 9 Feb 2018 13:26:31 +0000 (13:26 +0000)
commitee1b16bcbd6d570bbfde9d7cefd960cddedbbf6e
tree25e676ce741c197084d1927f1e5ca1845be056f9
parent2df70fba94aef9dc15462776f4f2d029d12706f6
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