]> arthur.barton.de Git - bup.git/blobdiff - cmd/mux-cmd.py
tvfs: accommodate python 3 and test there
[bup.git] / cmd / mux-cmd.py
index b7a6db12882d39c648749879842e0d1375ebaaff..1a500b658f6bc86c9dc052c4bf50688bcf4f6a97 100755 (executable)
@@ -5,6 +5,7 @@ exec "$bup_python" "$0" ${1+"$@"}
 """
 # end of bup preamble
 
+from __future__ import absolute_import
 import os, sys, subprocess, struct
 
 from bup import options
@@ -37,7 +38,7 @@ def close_fds():
     os.close(errr)
 
 p = subprocess.Popen(subcmd, stdin=orig_stdin, stdout=outw, stderr=errw,
-                     preexec_fn=close_fds)
+                     close_fds=False, preexec_fn=close_fds)
 os.close(outw)
 os.close(errw)
 sys.stdout.write('BUPMUX')