Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion doc/api/child_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -1432,7 +1432,11 @@ changes:

The `child_process.spawnSync()` method is generally identical to
[`child_process.spawn()`][] with the exception that the function will not return
until the child process has fully closed. When a timeout has been encountered
until the child process has fully closed and all stdio streams have reached EOF.
If the spawned process spawns a detached background child that inherits standard
I/O streams, those open descriptors can keep stdio streams open after the spawned
process has exited, causing `spawnSync()` to wait until all descriptors close or
the configured `timeout` expires. When a timeout has been encountered
and `killSignal` is sent, the method won't return until the process has
completely exited. If the process intercepts and handles the `SIGTERM` signal
and doesn't exit, the parent process will wait until the child process has
Expand Down