mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-07-01 07:11:25 +02:00
Fixed str being used as bytes in daemonize
This commit is contained in:
@ -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("/")
|
||||
|
Reference in New Issue
Block a user