Why python subprocess.Popen need close_fds parameter?
Why python subprocess.Popen need close_fds parameter? Question: Creating a subprocess seems to need to close some fd from caller, e.g., if caller opened fd 0,1,2(stdin,out,err) and fd=3(file named “a.txt”), and subprocess.Popen sets “close_fd=True”, like p=subprocess.Popen(cmd,shell=True,close_fds=True,stdout=None… Does it mean: (1) fd 0-3 are closed in subprocess? (2) if fd 0-3 are closed, how could subprocess print …