diff options
author | Brad King <brad.king@kitware.com> | 2024-02-05 11:04:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-05 11:04:05 -0500 |
commit | 3f7191e5c27a0e1852fe046a5ec0512a47e4a409 (patch) | |
tree | 8cc7233c02a41814f1dacdd3005279532ca2b7fd /docs/src | |
parent | 535efdf319ab719fbd3a7a4663339801d57b49c5 (diff) | |
download | libuv-3f7191e5c27a0e1852fe046a5ec0512a47e4a409.tar.gz libuv-3f7191e5c27a0e1852fe046a5ec0512a47e4a409.zip |
win/spawn: optionally run executable paths with no file extension (#4292)
Add a process options flag to enable the optional behavior. Most users
are likely recommended to set this flag by default, but it was deemed
potentially breaking to set it by default in libuv.
Co-authored-by: Kyle Edwards <kyle.edwards@kitware.com>
Diffstat (limited to 'docs/src')
-rw-r--r-- | docs/src/process.rst | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/docs/src/process.rst b/docs/src/process.rst index 8acf7db3..8d2fdb3e 100644 --- a/docs/src/process.rst +++ b/docs/src/process.rst @@ -85,7 +85,14 @@ Data types * option is only meaningful on Windows systems. On Unix it is silently * ignored. */ - UV_PROCESS_WINDOWS_HIDE_GUI = (1 << 6) + UV_PROCESS_WINDOWS_HIDE_GUI = (1 << 6), + /* + * On Windows, if the path to the program to execute, specified in + * uv_process_options_t's file field, has a directory component, + * search for the exact file name before trying variants with + * extensions like '.exe' or '.cmd'. + */ + UV_PROCESS_WINDOWS_FILE_PATH_EXACT_NAME = (1 << 7) }; .. c:type:: uv_stdio_container_t @@ -262,6 +269,9 @@ API .. versionchanged:: 1.24.0 Added `UV_PROCESS_WINDOWS_HIDE_CONSOLE` and `UV_PROCESS_WINDOWS_HIDE_GUI` flags. + .. versionchanged:: 1.48.0 Added the + `UV_PROCESS_WINDOWS_FILE_PATH_EXACT_NAME` flag. + .. c:function:: int uv_process_kill(uv_process_t* handle, int signum) Sends the specified signal to the given process handle. Check the documentation |