diff options
| author | Aldo Cortesi <aldo@nullcube.com> | 2013-08-25 10:46:11 +1200 |
|---|---|---|
| committer | Aldo Cortesi <aldo@nullcube.com> | 2013-08-25 10:46:11 +1200 |
| commit | c4e6d7aea6ac6f2040f8bd282a42d32264691db8 (patch) | |
| tree | f7d0995e19d05f08a1b6512fc6b374f86191018a /pathod | |
| parent | d2855089941b9f55a0625458130c69a6124655ab (diff) | |
| parent | 42aede6181c643bb5bbd35ca81b6c1b1c69ec4b5 (diff) | |
| download | mitmproxy-c4e6d7aea6ac6f2040f8bd282a42d32264691db8.tar.gz mitmproxy-c4e6d7aea6ac6f2040f8bd282a42d32264691db8.tar.bz2 mitmproxy-c4e6d7aea6ac6f2040f8bd282a42d32264691db8.zip | |
Merge branch 'master' of ssh.github.com:mitmproxy/pathod
Diffstat (limited to 'pathod')
| -rwxr-xr-x | pathod | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -22,9 +22,9 @@ def daemonize (stdin='/dev/null', stdout='/dev/null', stderr='/dev/null'): except OSError, e: sys.stderr.write ("fork #2 failed: (%d) %s\n" % (e.errno, e.strerror) ) sys.exit(1) - si = open(stdin, 'r') - so = open(stdout, 'a+') - se = open(stderr, 'a+', 0) + si = open(stdin, 'rb') + so = open(stdout, 'a+b') + se = open(stderr, 'a+b', 0) os.dup2(si.fileno(), sys.stdin.fileno()) os.dup2(so.fileno(), sys.stdout.fileno()) os.dup2(se.fileno(), sys.stderr.fileno()) |
