mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Don't try to register SIGHUP on Windows.
This commit is contained in:
parent
8baa35a250
commit
7aac173140
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user