diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2020-02-12 14:57:58 +0100 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2020-02-12 18:13:30 +0100 |
commit | 2550ded989efc889da1785b07865815b7e1b9415 (patch) | |
tree | bf2964ddaed587f3653d0d75f9c37933502599cf /dependencies | |
parent | e22367562515669dc05ed4d5a8980ad6c303fc02 (diff) | |
download | podman-2550ded989efc889da1785b07865815b7e1b9415.tar.gz podman-2550ded989efc889da1785b07865815b7e1b9415.tar.bz2 podman-2550ded989efc889da1785b07865815b7e1b9415.zip |
rootlessport: fix potential hang
write to the error pipe only in case of an error. Otherwise we may
end up in a race condition in the select statement below as the read
from errChan happens before initComplete and the function returns
immediately nil.
Closes: https://github.com/containers/libpod/issues/5182
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'dependencies')
0 files changed, 0 insertions, 0 deletions