@@ -351,6 +351,9 @@ controller.abort();
351351<!-- YAML
352352added: v0.5.0
353353changes:
354+ - version: REPLACEME
355+ pr-url: https://github.com/nodejs/node/pull/37256
356+ description: timeout was added.
354357 - version: v15.11.0
355358 pr-url: https://github.com/nodejs/node/pull/37325
356359 description: killSignal for AbortSignal was added.
@@ -387,7 +390,7 @@ changes:
387390 See [ Advanced serialization] [ ] for more details. ** Default:** ` 'json' ` .
388391 * ` signal ` {AbortSignal} Allows closing the subprocess using an AbortSignal.
389392 * ` killSignal ` {string} The signal value to be used when the spawned
390- process will be killed by the abort signal. ** Default:** ` 'SIGTERM' ` .
393+ process will be killed by timeout or abort signal. ** Default:** ` 'SIGTERM' ` .
391394 * ` silent ` {boolean} If ` true ` , stdin, stdout, and stderr of the child will be
392395 piped to the parent, otherwise they will be inherited from the parent, see
393396 the ` 'pipe' ` and ` 'inherit' ` options for [ ` child_process.spawn() ` ] [ ] 's
@@ -399,6 +402,8 @@ changes:
399402 * ` uid ` {number} Sets the user identity of the process (see setuid(2)).
400403 * ` windowsVerbatimArguments ` {boolean} No quoting or escaping of arguments is
401404 done on Windows. Ignored on Unix. ** Default:** ` false ` .
405+ * ` timeout ` {number} In milliseconds the maximum amount of time the process
406+ is allowed to run. ** Default:** ` undefined ` .
402407* Returns: {ChildProcess}
403408
404409The ` child_process.fork() ` method is a special case of
@@ -436,6 +441,9 @@ The `signal` option works exactly the same way it does in
436441<!-- YAML
437442added: v0.1.90
438443changes:
444+ - version: REPLACEME
445+ pr-url: https://github.com/nodejs/node/pull/37256
446+ description: timeout was added.
439447 - version: v15.11.0
440448 pr-url: https://github.com/nodejs/node/pull/37325
441449 description: killSignal for AbortSignal was added.
@@ -485,8 +493,10 @@ changes:
485493 * ` windowsHide ` {boolean} Hide the subprocess console window that would
486494 normally be created on Windows systems. ** Default:** ` false ` .
487495 * ` signal ` {AbortSignal} allows aborting the execFile using an AbortSignal.
488- * ` killSignal ` {string} The signal value to be used when the spawned
489- process will be killed by the abort signal. ** Default:** ` 'SIGTERM' ` .
496+ * ` timeout ` {number} In milliseconds the maximum amount of time the process
497+ is allowed to run. ** Default:** ` undefined ` .
498+ * ` killSignal ` {string|integer} The signal value to be used when the spawned
499+ process will be killed by timeout or abort signal. ** Default:** ` 'SIGTERM' ` .
490500
491501* Returns: {ChildProcess}
492502
0 commit comments