if statement for sighup in win32

This commit is contained in:
Marcos Pinto 2007-09-04 01:09:15 +00:00
parent 9af94bda88
commit f1fde2dcf0

View File

@ -146,7 +146,9 @@ class DelugeGTK:
signal.signal(signal.SIGINT, self.manager.quit)
signal.signal(signal.SIGTERM, self.manager.quit)
signal.signal(signal.SIGHUP, self.manager.quit)
import platform
if platform.system() != "Windows":
signal.signal(signal.SIGHUP, self.manager.quit)
self.dht_timer = 0
self.dht_skip = False