diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2016-03-10 03:24:20 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2016-03-10 03:24:20 +0100 |
commit | 3983638176e3f5b5584a2d1ea7ece59faa128908 (patch) | |
tree | eceb0d72bd32a08fa4e0e0ed78fdc18742020681 /.gitignore | |
parent | 9a3e83775a288bfc89384f9f394a904f676e000e (diff) | |
download | spline-startup-3983638176e3f5b5584a2d1ea7ece59faa128908.tar.gz spline-startup-3983638176e3f5b5584a2d1ea7ece59faa128908.tar.bz2 spline-startup-3983638176e3f5b5584a2d1ea7ece59faa128908.zip |
Non-Blocking read of subprocess output
Some deamons does not close stdout (and the other fds) during forking.
So our direct child will die, but Popen.communicate will block until
the daemon dies.
We now read the output non-blocking and stop reading it, if we get SIGCHLD
and our direct child is dead. Because we now handle SIGCHLD by ourselfs, we
need to ensure to call Popen.wait so that the kernel can cleanup our child
and we do not get defunct processes.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions