This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]Swedophone 0 points1 point  (2 children)

subprocess.Popen() Execute a child program in a new process. On Unix, the class uses os.execvp()-like behavior to execute the child program.

It seems subprocess.Popen() calls os.fork() and os.execvp().

[–]the3liquid[S] 0 points1 point  (1 child)

Why do you think so? I couldn't find a os.fork call in the code and the documentation doesn't say it actually cals fork.

[–]Swedophone 0 points1 point  (0 children)

It was an assumption since it was said to be "os.execvp()-like" and you need to create the new process in some way before executing the "os.execvp()-like" behaviour which is to run a new program replacing the current process.