Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 797aa42e authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Don't close file descriptors when starting python program"

parents c4fe27e9 d02ca056
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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