@@ -4611,11 +4611,18 @@ written in Python, such as a mail server's external command delivery program.
46114611
46124612 Performs ``os.closerange(fd, INF) ``.
46134613
4614+ .. data :: POSIX_SPAWN_CHDIR
4615+
4616+ (``os.POSIX_SPAWN_CHDIR ``, *path *)
4617+
4618+ Performs ``os.chdir(path) ``.
4619+
46144620 These tuples correspond to the C library
46154621 :c:func: `!posix_spawn_file_actions_addopen `,
46164622 :c:func: `!posix_spawn_file_actions_addclose `,
4617- :c:func: `!posix_spawn_file_actions_adddup2 `, and
4618- :c:func: `!posix_spawn_file_actions_addclosefrom_np ` API calls used to prepare
4623+ :c:func: `!posix_spawn_file_actions_adddup2 `,
4624+ :c:func: `!posix_spawn_file_actions_addclosefrom_np `, and
4625+ :c:func: `!posix_spawn_file_actions_addchdir_np ` API calls used to prepare
46194626 for the :c:func: `!posix_spawn ` call itself.
46204627
46214628 The *setpgroup * argument will set the process group of the child to the value
@@ -4661,8 +4668,9 @@ written in Python, such as a mail server's external command delivery program.
46614668 *env * parameter accepts ``None ``.
46624669
46634670 .. versionchanged :: 3.13
4664- ``os.POSIX_SPAWN_CLOSEFROM `` is available on platforms where
4665- :c:func: `!posix_spawn_file_actions_addclosefrom_np ` exists.
4671+ ``os.POSIX_SPAWN_CLOSEFROM `` and ``os.POSIX_SPAWN_CHDIR `` are available
4672+ on platforms where :c:func: `!posix_spawn_file_actions_addclosefrom_np `
4673+ and :c:func: `!posix_spawn_file_actions_addchdir_np ` exist.
46664674
46674675 .. availability :: Unix, not Emscripten, not WASI.
46684676
0 commit comments