Skip to content

Commit 77abf23

Browse files
orivejmiss-islington
authored andcommitted
bpo-6559: Update _posixsubprocess.fork_exec doc (GH-16283)
It did not list the argument added in d4cc7bf. https://bugs.python.org/issue6559 Automerge-Triggered-By: @gpshead
1 parent 9c2682e commit 77abf23

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Modules/_posixsubprocess.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -900,19 +900,22 @@ subprocess_fork_exec(PyObject* self, PyObject *args)
900900

901901

902902
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\
904904
p2cread, p2cwrite, c2pread, c2pwrite,\n\
905905
errread, errwrite, errpipe_read, errpipe_write,\n\
906906
restore_signals, call_setsid,\n\
907-
call_setgid, gid, groups_size, gids,\n\
908-
call_setuid, uid,\n\
907+
gid, groups_list, uid,\n\
909908
preexec_fn)\n\
910909
\n\
911910
Forks a child process, closes parent file descriptors as appropriate in the\n\
912911
child and dups the few that are needed before calling exec() in the child\n\
913912
process.\n\
914913
\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\
916919
WARNING: preexec_fn is NOT SAFE if your application uses threads.\n\
917920
It may trigger infrequent, difficult to debug deadlocks.\n\
918921
\n\

0 commit comments

Comments
 (0)