doc: fix typo in process.disconnect() docs

"that" should be "the" in this sentence. This commit also
restructures the sentence to avoid the word "process's"

PR-URL: https://github.com/nodejs/node/pull/28328
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
cjihrig 2019-06-20 13:37:17 -04:00
parent a03f256409
commit 3fd54510d0
No known key found for this signature in database
GPG Key ID: 7434390BDBE9B9C5

View File

@ -763,8 +763,8 @@ and [Cluster][] documentation), the `process.disconnect()` method will close the
IPC channel to the parent process, allowing the child process to exit gracefully IPC channel to the parent process, allowing the child process to exit gracefully
once there are no other connections keeping it alive. once there are no other connections keeping it alive.
The effect of calling `process.disconnect()` is that same as calling the parent The effect of calling `process.disconnect()` is the same as calling
process's [`ChildProcess.disconnect()`][]. [`ChildProcess.disconnect()`][] from the parent process.
If the Node.js process was not spawned with an IPC channel, If the Node.js process was not spawned with an IPC channel,
`process.disconnect()` will be `undefined`. `process.disconnect()` will be `undefined`.