|
|
@ -184,10 +184,11 @@ class Stream(mitogen.parent.Stream):
|
|
|
|
config['on_start'] = self.on_start
|
|
|
|
config['on_start'] = self.on_start
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
mitogen.core.ExternalContext(config).main()
|
|
|
|
try:
|
|
|
|
except Exception:
|
|
|
|
mitogen.core.ExternalContext(config).main()
|
|
|
|
# TODO: report exception somehow.
|
|
|
|
except Exception:
|
|
|
|
os._exit(72)
|
|
|
|
# TODO: report exception somehow.
|
|
|
|
|
|
|
|
os._exit(72)
|
|
|
|
finally:
|
|
|
|
finally:
|
|
|
|
# Don't trigger atexit handlers, they were copied from the parent.
|
|
|
|
# Don't trigger atexit handlers, they were copied from the parent.
|
|
|
|
os._exit(0)
|
|
|
|
os._exit(0)
|
|
|
|