summaryrefslogtreecommitdiff
path: root/python/scripts
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2022-09-10 00:54:48 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2022-09-10 00:54:48 +0000
commit797aa42e28fe75597a0bd7d4fb5404e7c58e78e7 (patch)
treeccaa688d5ae23de3f3459353df08cfe67631b081 /python/scripts
parentc4fe27e907e2d4fb4fec99364e9e411bbe952270 (diff)
parentd02ca056a376a36cb704e290f6188734d7a9e5bb (diff)
Merge "Don't close file descriptors when starting python program"
Diffstat (limited to 'python/scripts')
-rw-r--r--python/scripts/stub_template_host.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/scripts/stub_template_host.txt b/python/scripts/stub_template_host.txt
index 138404bf3..23897b30b 100644
--- a/python/scripts/stub_template_host.txt
+++ b/python/scripts/stub_template_host.txt
@@ -81,7 +81,9 @@ def Main():
os.environ.update(new_env)
sys.stdout.flush()
- retCode = subprocess.call(args)
+ # close_fds=False so that you can run binaries with files provided on the command line:
+ # my_python_app --file <(echo foo)
+ retCode = subprocess.call(args, close_fds=False)
sys.exit(retCode)
except:
raise