Michael Ryan wrote:
If you want to replace fork() + exec() with subprocess, be my guest -- I was just saying that trying to use subprocess.Popen directly (which returns an object), doesn't buy you anything extra -- you still need to read the controlling pty from output and record the PID in case of NM failure or rolling restart.

I agree. I was seeing the benefit in using pythonisms, rather than OS specific mechanisms. The fork and exec way may not work on a certain OS from Redmond.

Greetings,
Michael.

Reply via email to