Merge branch 'master' of git+ssh://supybot.git.sourceforge.net/gitroot/supybot

This commit is contained in:
James Vega 2009-04-28 07:58:10 -04:00
commit cedc4aaebe

View File

@ -111,6 +111,13 @@ if __name__ == '__main__':
debug('Pid %s is not the bot.' % pid)
if not foundBot:
# First, we check if the pidfile is writable. If not, supybot will just exit,
# so we go ahead and refuse to start it.
try:
file(options.pidfile, 'r+')
except EnvironmentError, e:
debug('pidfile (%s) is not writable: %s' % (options.pidfile, e))
sys.exit(-1)
debug('Bot not found, starting.')
home = os.environ['HOME']
inst = popen2.Popen4('sh')