]> arthur.barton.de Git - bup.git/commitdiff
mux: handle python 3's change to default close_fds=True
authorRob Browning <rlb@defaultvalue.org>
Mon, 23 Dec 2019 19:56:12 +0000 (13:56 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sat, 11 Jan 2020 20:39:27 +0000 (14:39 -0600)
Change mux to explicitly specify close_fds=False to deal with the fact
that python apparently changed the default in 3.2, and it absolutely
does need to keep the fds open.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
cmd/mux-cmd.py

index 3b5524415e5f916bfd03b846494cfc8bccc3ed69..1a500b658f6bc86c9dc052c4bf50688bcf4f6a97 100755 (executable)
@@ -38,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')