Skip to content
Snippets Groups Projects
Commit 75cff2d8 authored by Anael Beutot's avatar Anael Beutot
Browse files

Fix EBADF when closing fds in parent for ForkedJob

parent 5fa561b7
No related branches found
No related tags found
No related merge requests found
......@@ -285,6 +285,10 @@ class ForkedJob(object):
try:
os.close(fd)
except OSError as exc:
if exc.errno == errno.EBADF:
# FIXME this is weird but it seems to happen sometimes
logger.debug('Error while closing fd in parent, EBADF')
continue
logger.error('Error while closing fds in parent: %s',
os.strerror(exc.errno))
raise
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment