From 82db19754d8a0ba316b29f68d70d3253077680bd Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 27 Apr 2009 10:35:19 -0500 Subject: [PATCH] If supybot can't write the pidfile, it needs to exit. --- scripts/supybot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/supybot b/scripts/supybot index 6804f62f0..e281dd736 100644 --- a/scripts/supybot +++ b/scripts/supybot @@ -301,7 +301,8 @@ if __name__ == '__main__': log.error('Could not remove pid file: %s', e) atexit.register(removePidFile) 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