@@ -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: REPLACEME
355358 pr-url: https://github.com/nodejs/node/pull/37325
356359 description: killSignal for AbortSignal was added.
@@ -399,6 +402,10 @@ 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 ` .
407+ * ` killSignal ` {string|integer} The signal value to be used when the spawned
408+ process will be killed by timeout or abort signal. ** Default:** ` 'SIGTERM' ` .
402409* Returns: {ChildProcess}
403410
404411The ` child_process.fork() ` method is a special case of
@@ -436,6 +443,9 @@ The `signal` option works exactly the same way it does in
436443<!-- YAML
437444added: v0.1.90
438445changes:
446+ - version: REPLACEME
447+ pr-url: https://github.com/nodejs/node/pull/37256
448+ description: timeout was added.
439449 - version: REPLACEME
440450 pr-url: https://github.com/nodejs/node/pull/37325
441451 description: killSignal for AbortSignal was added.
@@ -485,8 +495,10 @@ changes:
485495 * ` windowsHide ` {boolean} Hide the subprocess console window that would
486496 normally be created on Windows systems. ** Default:** ` false ` .
487497 * ` 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' ` .
498+ * ` timeout ` {number} In milliseconds the maximum amount of time the process
499+ is allowed to run. ** Default:** ` undefined ` .
500+ * ` killSignal ` {string|integer} The signal value to be used when the spawned
501+ process will be killed by timeout or abort signal. ** Default:** ` 'SIGTERM' ` .
490502
491503* Returns: {ChildProcess}
492504
0 commit comments