summaryrefslogtreecommitdiffstats
path: root/COPYING
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2016-03-10 03:24:20 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2016-03-10 03:24:20 +0100
commit3983638176e3f5b5584a2d1ea7ece59faa128908 (patch)
treeeceb0d72bd32a08fa4e0e0ed78fdc18742020681 /COPYING
parent9a3e83775a288bfc89384f9f394a904f676e000e (diff)
downloadspline-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 'COPYING')
0 files changed, 0 insertions, 0 deletions