Merge "Don't close file descriptors when starting python program"
This commit is contained in:
@@ -81,7 +81,9 @@ def Main():
|
|||||||
os.environ.update(new_env)
|
os.environ.update(new_env)
|
||||||
|
|
||||||
sys.stdout.flush()
|
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)
|
sys.exit(retCode)
|
||||||
except:
|
except:
|
||||||
raise
|
raise
|
||||||
|
Reference in New Issue
Block a user