If supybot can't write the pidfile, it needs to exit.

This commit is contained in:
Jeremy Fincher 2009-04-27 10:35:19 -05:00
parent 4285df0809
commit 82db19754d

View File

@ -301,7 +301,8 @@ if __name__ == '__main__':
log.error('Could not remove pid file: %s', e) log.error('Could not remove pid file: %s', e)
atexit.register(removePidFile) atexit.register(removePidFile)
except EnvironmentError, e: except EnvironmentError, e:
log.error('Error opening pid file %s: %s', pidFile, e) log.fatal('Error opening/writing pid file %s: %s', pidFile, e)
sys.exit(-1)
conf.allowDefaultOwner = options.allowDefaultOwner conf.allowDefaultOwner = options.allowDefaultOwner