Skip to content
Permalink
Browse files
doc: remove "currently" and comma splice from child_process.md
Remove redundant use of "currently" and fix a comma splice.

PR-URL: #44789
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
Reviewed-By: Harshitha K P <harshitha014@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
  • Loading branch information
Trott authored and danielleadams committed Oct 5, 2022
1 parent 9864bde commit 4efaf4265c55b7da97f2989cceb08b2bc16f3b3a
Showing 1 changed file with 6 additions and 6 deletions.
@@ -692,9 +692,9 @@ subprocess.on('error', (err) => {
Certain platforms (macOS, Linux) will use the value of `argv[0]` for the process
title while others (Windows, SunOS) will use `command`.

Node.js currently overwrites `argv[0]` with `process.execPath` on startup, so
Node.js overwrites `argv[0]` with `process.execPath` on startup, so
`process.argv[0]` in a Node.js child process will not match the `argv0`
parameter passed to `spawn` from the parent, retrieve it with the
parameter passed to `spawn` from the parent. Retrieve it with the
`process.argv0` property instead.

If the `signal` option is enabled, calling `.abort()` on the corresponding
@@ -810,7 +810,7 @@ pipes between the parent and child. The value is one of the following:
`child_process` object as [`subprocess.stdio[fd]`][`subprocess.stdio`]. Pipes
created for fds 0, 1, and 2 are also available as [`subprocess.stdin`][],
[`subprocess.stdout`][] and [`subprocess.stderr`][], respectively.
Currently, these are not actual Unix pipes and therefore the child process
These are not actual Unix pipes and therefore the child process
can not use them by their descriptor files,
e.g. `/dev/fd/2` or `/dev/stdout`.
2. `'overlapped'`: Same as `'pipe'` except that the `FILE_FLAG_OVERLAPPED` flag
@@ -845,7 +845,7 @@ pipes between the parent and child. The value is one of the following:
underlying descriptor (file streams do not until the `'open'` event has
occurred).
7. Positive integer: The integer value is interpreted as a file descriptor
that is currently open in the parent process. It is shared with the child
that is open in the parent process. It is shared with the child
process, similar to how {Stream} objects can be shared. Passing sockets
is not supported on Windows.
8. `null`, `undefined`: Use default value. For stdio fds 0, 1, and 2 (in other
@@ -1274,7 +1274,7 @@ changes:
* {Object} A pipe representing the IPC channel to the child process.

The `subprocess.channel` property is a reference to the child's IPC channel. If
no IPC channel currently exists, this property is `undefined`.
no IPC channel exists, this property is `undefined`.

#### `subprocess.channel.ref()`

@@ -1583,7 +1583,7 @@ can be handled by the parent and some by the child.
While the example above uses a server created using the `node:net` module,
`node:dgram` module servers use exactly the same workflow with the exceptions of
listening on a `'message'` event instead of `'connection'` and using
`server.bind()` instead of `server.listen()`. This is, however, currently only
`server.bind()` instead of `server.listen()`. This is, however, only
supported on Unix platforms.

#### Example: sending a socket object

0 comments on commit 4efaf42

Please sign in to comment.