##// END OF EJS Templates
py3: simply use b'%d\n' to format pid in server.py...
Yuya Nishihara -
r32617:e48cb1c7 default
parent child Browse files
Show More
@@ -33,7 +33,7 b' def runservice(opts, parentfn=None, init'
33 else:
33 else:
34 mode = 'wb'
34 mode = 'wb'
35 fp = open(opts['pid_file'], mode)
35 fp = open(opts['pid_file'], mode)
36 fp.write(str(pid).encode('latin1') + '\n')
36 fp.write('%d\n' % pid)
37 fp.close()
37 fp.close()
38
38
39 if opts['daemon'] and not opts['daemon_postexec']:
39 if opts['daemon'] and not opts['daemon_postexec']:
General Comments 0
You need to be logged in to leave comments. Login now