From 4efaf4265c55b7da97f2989cceb08b2bc16f3b3a Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 27 Sep 2022 14:26:45 -0700 Subject: [PATCH] doc: remove "currently" and comma splice from child_process.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove redundant use of "currently" and fix a comma splice. PR-URL: https://github.com/nodejs/node/pull/44789 Reviewed-By: Antoine du Hamel Reviewed-By: Michaƫl Zasso Reviewed-By: Luigi Pinca Reviewed-By: Akhil Marsonya Reviewed-By: Harshitha K P Reviewed-By: Darshan Sen Reviewed-By: Daeyeon Jeong --- doc/api/child_process.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/api/child_process.md b/doc/api/child_process.md index ebf99ab54d2391..557eb3d53a3a3d 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -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