mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 03:02:52 +01:00
supybot-botchk: Use a different method for creating pidfile if it doesn't exist
This commit is contained in:
parent
658d0ad84d
commit
ff1d9c4f69
@ -97,8 +97,8 @@ if __name__ == '__main__':
|
||||
parser.error('No conffile given.')
|
||||
|
||||
os.chdir(options.botdir)
|
||||
pidfile = open(options.pidfile, 'ab')
|
||||
pidfile.close()
|
||||
if not os.path.exists(options.pidfile):
|
||||
open(options.pidfile, 'x').close()
|
||||
|
||||
pid = None
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user