| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0754734 commit e9ee168
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -366,8 +366,7 @@ By default, `child_process.fork()` will spawn new Node.js instances using the | |||
| 366 | 366 | ||
| 367 | 367 | Node.js processes launched with a custom `execPath` will communicate with the | |
| 368 | 368 | parent process using the file descriptor (fd) identified using the | |
| 369 | - environment variable `NODE_CHANNEL_FD` on the child process. The input and | ||
| 370 | - output on this fd is expected to be line delimited JSON objects. | ||
| 369 | + environment variable `NODE_CHANNEL_FD` on the child process. | ||
| 371 | 370 | ||
| 372 | 371 | *Note*: Unlike the fork(2) POSIX system call, `child_process.fork()` does | |
| 373 | 372 | not clone the current process. | |
@@ -609,9 +608,7 @@ pipes between the parent and child. The value is one of the following: | |||
| 609 | 608 | 2. `'ipc'` - Create an IPC channel for passing messages/file descriptors | |
| 610 | 609 | between parent and child. A [`ChildProcess`][] may have at most *one* IPC stdio | |
| 611 | 610 | file descriptor. Setting this option enables the [`subprocess.send()`][] | |
| 612 | - method. If the child writes JSON messages to this file descriptor, the | ||
| 613 | - [`subprocess.on('message')`][`'message'`] event handler will be triggered in | ||
| 614 | - the parent. If the child is a Node.js process, the presence of an IPC channel | ||
| 611 | + method. If the child is a Node.js process, the presence of an IPC channel | ||
| 615 | 612 | will enable [`process.send()`][], [`process.disconnect()`][], | |
| 616 | 613 | [`process.on('disconnect')`][], and [`process.on('message')`] within the | |
| 617 | 614 | child. | |
@@ -933,9 +930,8 @@ added: v0.5.9 | |||
| 933 | 930 | The `'message'` event is triggered when a child process uses [`process.send()`][] | |
| 934 | 931 | to send messages. | |
| 935 | 932 | ||
| 936 | - *Note*: The message goes through JSON serialization and parsing. The resulting | ||
| 937 | - message might not be the same as what is originally sent. See notes in | ||
| 938 | - [the `JSON.stringify()` specification][`JSON.stringify` spec]. | ||
| 933 | + *Note*: The message goes through serialization and parsing. The resulting | ||
| 934 | + message might not be the same as what is originally sent. | ||
| 939 | 935 | ||
| 940 | 936 | ### subprocess.channel | |
| 941 | 937 | <!-- YAML | |
@@ -1097,9 +1093,8 @@ be used to send messages to the child process. When the child process is a | |||
| 1097 | 1093 | Node.js instance, these messages can be received via the | |
| 1098 | 1094 | [`process.on('message')`][] event. | |
| 1099 | 1095 | ||
| 1100 | - *Note*: The message goes through JSON serialization and parsing. The resulting | ||
| 1101 | - message might not be the same as what is originally sent. See notes in | ||
| 1102 | - [the `JSON.stringify()` specification][`JSON.stringify` spec]. | ||
| 1096 | + *Note*: The message goes through serialization and parsing. The resulting | ||
| 1097 | + message might not be the same as what is originally sent. | ||
| 1103 | 1098 | ||
| 1104 | 1099 | For example, in the parent script: | |
| 1105 | 1100 | ||
@@ -1369,7 +1364,6 @@ unavailable. | |||
| 1369 | 1364 | [`ChildProcess`]: #child_process_child_process | |
| 1370 | 1365 | [`Error`]: errors.html#errors_class_error | |
| 1371 | 1366 | [`EventEmitter`]: events.html#events_class_eventemitter | |
| 1372 | - [`JSON.stringify` spec]: https://tc39.github.io/ecma262/#sec-json.stringify | ||
| 1373 | 1367 | [`subprocess.connected`]: #child_process_subprocess_connected | |
| 1374 | 1368 | [`subprocess.disconnect()`]: #child_process_subprocess_disconnect | |
| 1375 | 1369 | [`subprocess.kill()`]: #child_process_subprocess_kill_signal | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -94,9 +94,8 @@ The listener callback is invoked with the following arguments: | |||
| 94 | 94 | * `sendHandle` {Handle object} a [`net.Socket`][] or [`net.Server`][] object, or | |
| 95 | 95 | undefined. | |
| 96 | 96 | ||
| 97 | - *Note*: The message goes through JSON serialization and parsing. The resulting | ||
| 98 | - message might not be the same as what is originally sent. See notes in | ||
| 99 | - [the `JSON.stringify()` specification][`JSON.stringify` spec]. | ||
| 97 | + *Note*: The message goes through serialization and parsing. The resulting | ||
| 98 | + message might not be the same as what is originally sent. | ||
| 100 | 99 | ||
| 101 | 100 | ### Event: 'rejectionHandled' | |
| 102 | 101 | <!-- YAML | |
@@ -1519,9 +1518,8 @@ used to send messages to the parent process. Messages will be received as a | |||
| 1519 | 1518 | If Node.js was not spawned with an IPC channel, `process.send()` will be | |
| 1520 | 1519 | `undefined`. | |
| 1521 | 1520 | ||
| 1522 | - *Note*: The message goes through JSON serialization and parsing. The resulting | ||
| 1523 | - message might not be the same as what is originally sent. See notes in | ||
| 1524 | - [the `JSON.stringify()` specification][`JSON.stringify` spec]. | ||
| 1521 | + *Note*: The message goes through serialization and parsing. The resulting | ||
| 1522 | + message might not be the same as what is originally sent. | ||
| 1525 | 1523 | ||
| 1526 | 1524 | ## process.setegid(id) | |
| 1527 | 1525 | <!-- YAML | |
@@ -1951,7 +1949,6 @@ cases: | |||
| 1951 | 1949 | [`ChildProcess`]: child_process.html#child_process_class_childprocess | |
| 1952 | 1950 | [`Error`]: errors.html#errors_class_error | |
| 1953 | 1951 | [`EventEmitter`]: events.html#events_class_eventemitter | |
| 1954 | - [`JSON.stringify` spec]: https://tc39.github.io/ecma262/#sec-json.stringify | ||
| 1955 | 1952 | [`console.error()`]: console.html#console_console_error_data_args | |
| 1956 | 1953 | [`console.log()`]: console.html#console_console_log_data_args | |
| 1957 | 1954 | [`domain`]: domain.html | |
| Back | FazBrowse Home | New Git URL |
0 commit comments