I think I found the answer. By using Popen
with close_fds = True
I was able to start up a process that was independent and without handles to the parent.
For docs look here and search for close_fds
.
Or, on Windows, if close_fds is true then no handles will be inherited
by the child process. Note that on Windows, you cannot set close_fds
to true and also redirect the standard handles by setting stdin,
stdout or stderr.
Note this solution only works on Windows. I have no idea about any *nix system.
Related Contents:
- Python subprocess/Popen with a modified environment
- How to use subprocess popen Python [duplicate]
- Subprocess.Popen: cloning stdout and stderr both to terminal and variables
- Popen waiting for child process even when the immediate child has terminated
- Python popen command. Wait until the command is finished
- Calling the “source” command from subprocess.Popen
- How can I specify working directory for popen
- Popen with conflicting executable/path
- How do I get ‘real-time’ information back from a subprocess.Popen in python (2.5)
- link several Popen commands with pipes
- How to write to stdout AND to log file simultaneously with Popen?
- How do I get all of the output from my .exe using subprocess and Popen?
- Is it possible to run function in a subprocess without threading or writing a separate file/script.
- What’s the difference between subprocess Popen and call (how can I use them)?
- Intercepting stdout of a subprocess while it is running
- subprocess.Popen() error (No such file or directory) when calling command with arguments as a string
- Running a process in pythonw with Popen without a console
- Python subprocess and user interaction
- Keep a subprocess alive and keep giving it commands? Python
- Launch a shell command with in a python script, wait for the termination and return to the script
- python subprocess Popen environment PATH?
- How to get output from subprocess.Popen(). proc.stdout.readline() blocks, no data prints out
- How do I eliminate Windows consoles from spawned processes in Python (2.7)? [duplicate]
- Silent run installer (.exe) with parameters on Windows
- How do I bundle a Python application including dependencies into a Windows Installer package for distribution?
- How can I specify working directory for a subprocess
- Killing a process created with Python’s subprocess.Popen() [duplicate]
- subprocess.Popen in different console
- What is the subprocess.Popen max length of the args parameter?
- Difference between modes a, a+, w, w+, and r+ in built-in open function?
- Create a single executable from a Python project
- How can I check if a string represents an int, without using try/except?
- How to determine a Python variable’s type?
- Python group by
- How to upload file ( picture ) with selenium, python
- find_element_by_* commands are deprecated in selenium
- How can we JOIN two Spark SQL dataframes using a SQL-esque “LIKE” criterion?
- Convert integer to string in Python
- Convert array of indices to one-hot encoded array in NumPy
- Pandas lookup from one of multiple columns, based on value
- How to attach a Scrollbar to a Text widget?
- Filling missing values using forward and backward fill in pandas dataframe (ffill and bfill)
- zsh: no matches found: requests[security]
- Display (print) string multiple times (repeatedly)
- Client.__init__() missing 1 required keyword-only argument: ‘intents’
- Floating Point Limitations [duplicate]
- Bipartite graph in NetworkX
- How to chain a Celery task that returns a list into a group?
- Display image stored as binary blob in template
- getting the row and column numbers from coordinate value in openpyxl