@@ -900,19 +900,22 @@ subprocess_fork_exec(PyObject* self, PyObject *args)
900
900
901
901
902
902
PyDoc_STRVAR (subprocess_fork_exec_doc ,
903
- "fork_exec(args, executable_list, close_fds, cwd, env,\n\
903
+ "fork_exec(args, executable_list, close_fds, pass_fds, cwd, env,\n\
904
904
p2cread, p2cwrite, c2pread, c2pwrite,\n\
905
905
errread, errwrite, errpipe_read, errpipe_write,\n\
906
906
restore_signals, call_setsid,\n\
907
- call_setgid, gid, groups_size, gids,\n\
908
- call_setuid, uid,\n\
907
+ gid, groups_list, uid,\n\
909
908
preexec_fn)\n\
910
909
\n\
911
910
Forks a child process, closes parent file descriptors as appropriate in the\n\
912
911
child and dups the few that are needed before calling exec() in the child\n\
913
912
process.\n\
914
913
\n\
915
- The preexec_fn, if supplied, will be called immediately before exec.\n\
914
+ If close_fds is true, close file descriptors 3 and higher, except those listed\n\
915
+ in the sorted tuple pass_fds.\n\
916
+ \n\
917
+ The preexec_fn, if supplied, will be called immediately before closing file\n\
918
+ descriptors and exec.\n\
916
919
WARNING: preexec_fn is NOT SAFE if your application uses threads.\n\
917
920
It may trigger infrequent, difficult to debug deadlocks.\n\
918
921
\n\
0 commit comments