Don't try to register SIGHUP on Windows.

This commit is contained in:
Jeremy Fincher 2004-08-29 18:09:20 +00:00
parent 8baa35a250
commit 7aac173140

View File

@ -89,7 +89,8 @@ def _hupHandler(sig, frame):
log.info('Received SIGHUP, reloading configuration.')
_reload()
signal.signal(signal.SIGHUP, _hupHandler)
if os.name == 'posix':
signal.signal(signal.SIGHUP, _hupHandler)
class Config(callbacks.Privmsg):