HOME
FAQ
DOCS
DOWNLOAD
Search:
Login
Help/Guide
About Trac
Register
Wiki
Timeline
Roadmap
Browse Source
View Tickets
Search
Ticket #2535
: poll-for-exit.diff
File poll-for-exit.diff,
0.9 kB
(added by glyph,
3 years
ago)
an very short hack to poll for process exit
twisted/internet/process.py
277
277
if not proto:
278
278
assert 'r' not in childFDs.values()
279
279
assert 'w' not in childFDs.values()
280
self.reactor = reactor
280
281
if not signal.getsignal(signal.SIGCHLD):
281
282
log.msg("spawnProcess called, but the SIGCHLD handler is not "
282
283
"installed. This probably means you have not yet "
…
…
661
662
if not self.lostProcess:
662
663
#print "maybe, but haven't .lostProcess yet"
663
664
self.reapProcess()
665
if not self.lostProcess:
666
self.reactor.callLater(0.01, self.maybeCallProcessEnded)
664
667
return
665
668
try:
666
669
exitCode = sig = None
Download in other formats:
Original Format