@@ -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/36603
356+ description: AbortSignal support was added.
354357 - version:
355358 - v13.2.0
356359 - v12.16.0
@@ -375,9 +378,11 @@ changes:
375378 * ` execPath ` {string} Executable used to create the child process.
376379 * ` execArgv ` {string[ ] } List of string arguments passed to the executable.
377380 ** Default:** ` process.execArgv ` .
381+ * ` gid ` {number} Sets the group identity of the process (see setgid(2)).
378382 * ` serialization ` {string} Specify the kind of serialization used for sending
379383 messages between processes. Possible values are ` 'json' ` and ` 'advanced' ` .
380384 See [ Advanced serialization] [ ] for more details. ** Default:** ` 'json' ` .
385+ * ` signal ` {AbortSignal} Allows closing the subprocess using an AbortSignal.
381386 * ` silent ` {boolean} If ` true ` , stdin, stdout, and stderr of the child will be
382387 piped to the parent, otherwise they will be inherited from the parent, see
383388 the ` 'pipe' ` and ` 'inherit' ` options for [ ` child_process.spawn() ` ] [ ] 's
@@ -386,10 +391,9 @@ changes:
386391 When this option is provided, it overrides ` silent ` . If the array variant
387392 is used, it must contain exactly one item with value ` 'ipc' ` or an error
388393 will be thrown. For instance ` [0, 1, 2, 'ipc'] ` .
394+ * ` uid ` {number} Sets the user identity of the process (see setuid(2)).
389395 * ` windowsVerbatimArguments ` {boolean} No quoting or escaping of arguments is
390396 done on Windows. Ignored on Unix. ** Default:** ` false ` .
391- * ` uid ` {number} Sets the user identity of the process (see setuid(2)).
392- * ` gid ` {number} Sets the group identity of the process (see setgid(2)).
393397* Returns: {ChildProcess}
394398
395399The ` child_process.fork() ` method is a special case of
@@ -420,6 +424,9 @@ current process.
420424The ` shell ` option available in [ ` child_process.spawn() ` ] [ ] is not supported by
421425` child_process.fork() ` and will be ignored if set.
422426
427+ The ` signal ` option works exactly the same way it does in
428+ [ ` child_process.spawn() ` ] [ ] .
429+
423430### ` child_process.spawn(command[, args][, options]) `
424431<!-- YAML
425432added: v0.1.90
0 commit comments