Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to determine pid of process started via os.system
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. CO*"therefore the subprocess `Popen(["python", "bar.py", "arguments"])` is too slow."* -- have you actually measured it? [The question that you've linked](http://stackoverflow.com/questions/10888846/python-subprocess-module-much-slower-than-commands-deprecated) shows different case and anyway the time difference is a couple of milliseconds.
      singulars
    2. COYes, I have measured it. It was around 20 to 30ms, which was in my specific case too slow, since I had a scrolling graphic, which had to be updated multiple times per second. `os.spawnl` gave me the desired functionality, even though it added around one second to start each process, but without stopping my main process. It is still not the ideal solution, but for my case bettern than `subprocess.Popen`.
      singulars
    3. COYou should've mentioned it in the question (ideally, with a complete minimal code example that other people can try). Beware `spawn` inherits all inheritable file descriptors (`Popen` closes them (Python 3)). Can you start processes before hand and pause them and then only unpause them (send input or a signal)? Why can't you use `bar.py` script in the same process? btw, why `spawn` would add a whole second to the starting of a process compared to `Popen`?
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload