Skip to content

Commit

Permalink
libraries.stdlib.call: fix leaking epoll FD
Browse files Browse the repository at this point in the history
  • Loading branch information
t184256 authored and pirat89 committed Aug 12, 2024
1 parent fcd13bc commit 0d6da94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leapp/libraries/stdlib/call.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ def _call(command, callback_raw=lambda fd, value: None, callback_linebuffered=la
elif stdin is not None:
raise TypeError('stdin has to be either a file descriptor or string, not "{!s}"'.format(type(stdin)))

ep = EventLoop()
pid = os.fork()
if pid > 0:
ep = EventLoop()
# Since pid > 0, we are in the parent process, so we have to close the write-end
# file descriptors
os.close(wstdout)
Expand Down

0 comments on commit 0d6da94

Please sign in to comment.