From 726879d73e05dcdcdd25bcaaf95b4bcf65801c6c Mon Sep 17 00:00:00 2001 From: donovan Date: Mon, 19 May 2008 15:27:31 -0700 Subject: [PATCH] Actually abort the main loop on sigint. --- eventlet/hubs/libevent.py | 1 + 1 file changed, 1 insertion(+) diff --git a/eventlet/hubs/libevent.py b/eventlet/hubs/libevent.py index 10327e1..46f8d3e 100644 --- a/eventlet/hubs/libevent.py +++ b/eventlet/hubs/libevent.py @@ -90,6 +90,7 @@ class Hub(hub.BaseHub): # mechanism swallows exceptions raised here, so we have to raise in # the 'main' greenlet (in wait()) to kill the program self.interrupted = True + event.abort() def wait(self, seconds=None): # this timeout will cause us to return from the dispatch() call