summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvieira <vieira@yubo.be>2015-12-09 00:38:26 +0000
committerBrian May <brian@linuxpenguins.xyz>2015-12-09 16:32:39 +1100
commit2eeea9536afe87cbe21f9417768a6977c2bb11d1 (patch)
treec7166a1c07bf62b2376a8891aceafd0b516d1653
parent9a77d03edf08965d7cc6678d4befeac420d9eaa8 (diff)
Fixed str being used as bytes in daemonize
-rw-r--r--sshuttle/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sshuttle/client.py b/sshuttle/client.py
index 51de95c..0dfd404 100644
--- a/sshuttle/client.py
+++ b/sshuttle/client.py
@@ -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("/")