mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-09 01:24:03 +01:00
Fixed str being used as bytes in daemonize
This commit is contained in:
parent
9a77d03edf
commit
2eeea9536a
@ -67,7 +67,7 @@ def daemonize():
|
||||
|
||||
outfd = os.open(_pidname, os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o666)
|
||||
try:
|
||||
os.write(outfd, '%d\n' % os.getpid())
|
||||
os.write(outfd, b'%d\n' % os.getpid())
|
||||
finally:
|
||||
os.close(outfd)
|
||||
os.chdir("/")
|
||||
|
Loading…
Reference in New Issue
Block a user