Ticket #1997: nocalllater.diff

File nocalllater.diff, 679 bytes (added by glyph, 9 years ago)

my suggested fix, hopefully incredibly simple

  • twisted/internet/posixbase.py

     
    198198        eventloop round prevents us from violating the state constraints
    199199        of arbitrary classes.
    200200        """
    201         if _threadSupport:
    202             self.callFromThread(process.reapAllProcesses)
    203         else:
    204             self.callLater(0, process.reapAllProcesses)
     201        self.callFromThread(process.reapAllProcesses)
    205202
    206203    def startRunning(self, installSignalHandlers=1):
    207204        # Just in case we're started on a different thread than