Commit 533607d9 authored by Denis Bilenko's avatar Denis Bilenko

signal(): setting _start_event is not needed anymore

parent bfe5bb68
......@@ -134,9 +134,11 @@ class signal(object):
self.watcher.stop()
def _start(self):
greenlet = self.greenlet_class(self.handle)
greenlet._start_event = _Dummy()
greenlet.switch()
try:
greenlet = self.greenlet_class(self.handle)
greenlet.switch()
except:
self.hub.handle_error(None, *sys._exc_info())
def handle(self):
try:
......@@ -145,12 +147,6 @@ class signal(object):
self.hub.handle_error(None, *sys.exc_info())
class _Dummy(object):
def stop(self):
pass
if _original_fork is not None:
def fork():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment