r126 - /debtorrent/trunk/DebTorrent/RawServer.py
camrdale-guest at users.alioth.debian.org
camrdale-guest at users.alioth.debian.org
Sun Jun 24 10:31:39 UTC 2007
Author: camrdale-guest
Date: Sun Jun 24 10:31:39 2007
New Revision: 126
URL: http://svn.debian.org/wsvn/debtorrent/?sc=1&rev=126
Log:
Fix up the signal handling a little more.
Modified:
debtorrent/trunk/DebTorrent/RawServer.py
Modified: debtorrent/trunk/DebTorrent/RawServer.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/DebTorrent/RawServer.py?rev=126&op=diff
==============================================================================
--- debtorrent/trunk/DebTorrent/RawServer.py (original)
+++ debtorrent/trunk/DebTorrent/RawServer.py Sun Jun 24 10:31:39 2007
@@ -20,7 +20,7 @@
from threading import Thread, Event
from time import sleep
from clock import clock
-from signal import signal, SIGINT
+from signal import signal, SIGINT, SIG_DFL
import sys
try:
True
@@ -352,6 +352,7 @@
self.failfunc(str(e))
return
except KeyboardInterrupt:
+ signal(SIGINT, SIG_DFL)
# self.exception(True)
return
except:
@@ -369,6 +370,7 @@
if self.doneflag.isSet():
return
except KeyboardInterrupt:
+ signal(SIGINT, SIG_DFL)
# self.exception(True)
return
except:
More information about the Debtorrent-commits
mailing list