@@ -374,6 +374,9 @@ controller.abort();
374374<!-- YAML
375375added: v0.5.0
376376changes:
377+ - version: REPLACEME
378+ pr-url: https://github.com/nodejs/node/pull/37256
379+ description: timeout was added.
377380 - version: v15.11.0
378381 pr-url: https://github.com/nodejs/node/pull/37325
379382 description: killSignal for AbortSignal was added.
@@ -410,8 +413,8 @@ changes:
410413 See [ Advanced serialization] [ ] for more details. ** Default:** ` 'json' ` .
411414 * ` signal ` {AbortSignal} Allows closing the child process using an
412415 AbortSignal.
413- * ` killSignal ` {string} The signal value to be used when the spawned
414- process will be killed by the abort signal. ** Default:** ` 'SIGTERM' ` .
416+ * ` killSignal ` {string|integer } The signal value to be used when the spawned
417+ process will be killed by timeout or abort signal. ** Default:** ` 'SIGTERM' ` .
415418 * ` silent ` {boolean} If ` true ` , stdin, stdout, and stderr of the child will be
416419 piped to the parent, otherwise they will be inherited from the parent, see
417420 the ` 'pipe' ` and ` 'inherit' ` options for [ ` child_process.spawn() ` ] [ ] 's
@@ -423,6 +426,8 @@ changes:
423426 * ` uid ` {number} Sets the user identity of the process (see setuid(2)).
424427 * ` windowsVerbatimArguments ` {boolean} No quoting or escaping of arguments is
425428 done on Windows. Ignored on Unix. ** Default:** ` false ` .
429+ * ` timeout ` {number} In milliseconds the maximum amount of time the process
430+ is allowed to run. ** Default:** ` undefined ` .
426431* Returns: {ChildProcess}
427432
428433The ` child_process.fork() ` method is a special case of
@@ -478,6 +483,9 @@ if (process.argv[2] === 'child') {
478483<!-- YAML
479484added: v0.1.90
480485changes:
486+ - version: REPLACEME
487+ pr-url: https://github.com/nodejs/node/pull/37256
488+ description: timeout was added.
481489 - version: v15.11.0
482490 pr-url: https://github.com/nodejs/node/pull/37325
483491 description: killSignal for AbortSignal was added.
@@ -528,8 +536,10 @@ changes:
528536 normally be created on Windows systems. ** Default:** ` false ` .
529537 * ` signal ` {AbortSignal} allows aborting the child process using an
530538 AbortSignal.
531- * ` killSignal ` {string} The signal value to be used when the spawned
532- process will be killed by the abort signal. ** Default:** ` 'SIGTERM' ` .
539+ * ` timeout ` {number} In milliseconds the maximum amount of time the process
540+ is allowed to run. ** Default:** ` undefined ` .
541+ * ` killSignal ` {string|integer} The signal value to be used when the spawned
542+ process will be killed by timeout or abort signal. ** Default:** ` 'SIGTERM' ` .
533543
534544* Returns: {ChildProcess}
535545
0 commit comments