Commit 2eeea953 authored by vieira's avatar vieira Committed by Brian May

Fixed str being used as bytes in daemonize

parent 9a77d03e
...@@ -67,7 +67,7 @@ def daemonize(): ...@@ -67,7 +67,7 @@ def daemonize():
outfd = os.open(_pidname, os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o666) outfd = os.open(_pidname, os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o666)
try: try:
os.write(outfd, '%d\n' % os.getpid()) os.write(outfd, b'%d\n' % os.getpid())
finally: finally:
os.close(outfd) os.close(outfd)
os.chdir("/") os.chdir("/")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment