diff options
author | vieira <vieira@yubo.be> | 2015-12-09 00:38:26 +0000 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2015-12-09 16:32:39 +1100 |
commit | 2eeea9536afe87cbe21f9417768a6977c2bb11d1 (patch) | |
tree | c7166a1c07bf62b2376a8891aceafd0b516d1653 | |
parent | 9a77d03edf08965d7cc6678d4befeac420d9eaa8 (diff) |
Fixed str being used as bytes in daemonize
-rw-r--r-- | sshuttle/client.py | 2 |
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("/") |