Пример #1
0
 def run(self,*args,**kwargs):
   log._disallow_tracing_control()
   try:
     r = _RealProcess.run(self, *args, **kwargs)
   finally:
     if log.trace_is_enabled():
       log.trace_flush() # todo, reduce need for this...
   return r
Пример #2
0
 def run(self, *args, **kwargs):
     log._disallow_tracing_control()
     try:
         r = _RealProcess.run(self, *args, **kwargs)
     finally:
         if log.trace_is_enabled():
             log.trace_flush()  # todo, reduce need for this...
     return r
Пример #3
0
 def terminate(self):
   if log.trace_is_enabled():
     # give the flush a chance to finish --> TODO: find some other way.
     time.sleep(0.25)
   self._proc.terminate()
Пример #4
0
 def terminate(self):
     if log.trace_is_enabled():
         time.sleep(
             0.25
         )  # give the flush a chance to finish --> ergh, find some other way
     self._proc.terminate()
Пример #5
0
 def terminate(self):
     if log.trace_is_enabled():
         # give the flush a chance to finish --> TODO: find some other way.
         time.sleep(0.25)
     self._proc.terminate()
Пример #6
0
 def terminate(self):
   if log.trace_is_enabled():
     time.sleep(0.25) # give the flush a chance to finish --> ergh, find some other way
   self._proc.terminate()