mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
doc: add Windows-specific info to subprocess.kill()
Clarify the inner workings of .kill on Windows, since termination signals are not available there. Fixes: https://github.com/nodejs/node/issues/34858 PR-URL: https://github.com/nodejs/node/pull/34867 Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
parent
570fbcef93
commit
13c3924af8
|
|
@ -1277,6 +1277,11 @@ may not actually terminate the process.
|
|||
|
||||
See kill(2) for reference.
|
||||
|
||||
On Windows, where POSIX signals do not exist, the `signal` argument will be
|
||||
ignored, and the process will be killed forcefully and abruptly (similar to
|
||||
`'SIGKILL'`).
|
||||
See [Signal Events][] for more details.
|
||||
|
||||
On Linux, child processes of child processes will not be terminated
|
||||
when attempting to kill their parent. This is likely to happen when running a
|
||||
new process in a shell or with the use of the `shell` option of `ChildProcess`:
|
||||
|
|
@ -1741,6 +1746,7 @@ or [`child_process.fork()`][].
|
|||
[Default Windows shell]: #child_process_default_windows_shell
|
||||
[HTML structured clone algorithm]: https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm
|
||||
[Shell requirements]: #child_process_shell_requirements
|
||||
[Signal Events]: process.md#process_signal_events
|
||||
[`'disconnect'`]: process.md#process_event_disconnect
|
||||
[`'error'`]: #child_process_event_error
|
||||
[`'exit'`]: #child_process_event_exit
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user