@@ -366,8 +366,7 @@ By default, `child_process.fork()` will spawn new Node.js instances using the
366366
367367Node.js processes launched with a custom ` execPath ` will communicate with the
368368parent 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.
371370
372371* Note* : Unlike the fork(2) POSIX system call, ` child_process.fork() ` does
373372not clone the current process.
@@ -609,9 +608,7 @@ pipes between the parent and child. The value is one of the following:
6096082 . ` 'ipc' ` - Create an IPC channel for passing messages/file descriptors
610609 between parent and child. A [ ` ChildProcess ` ] [ ] may have at most * one* IPC stdio
611610 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
615612 will enable [ ` process.send() ` ] [ ] , [ ` process.disconnect() ` ] [ ] ,
616613 [ ` process.on('disconnect') ` ] [ ] , and [ ` process.on('message') ` ] within the
617614 child.
@@ -933,9 +930,8 @@ added: v0.5.9
933930The ` 'message' ` event is triggered when a child process uses [ ` process.send() ` ] [ ]
934931to send messages.
935932
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.
939935
940936<a name =" child_process_child_channel " ></a >
941937### subprocess.channel
@@ -1103,9 +1099,8 @@ be used to send messages to the child process. When the child process is a
11031099Node.js instance, these messages can be received via the
11041100[ ` process.on('message') ` ] [ ] event.
11051101
1106- * Note* : The message goes through JSON serialization and parsing. The resulting
1107- message might not be the same as what is originally sent. See notes in
1108- [ the ` JSON.stringify() ` specification] [ `JSON.stringify` spec ] .
1102+ * Note* : The message goes through serialization and parsing. The resulting
1103+ message might not be the same as what is originally sent.
11091104
11101105For example, in the parent script:
11111106
@@ -1382,7 +1377,6 @@ unavailable.
13821377[ `ChildProcess` ] : #child_process_child_process
13831378[ `Error` ] : errors.html#errors_class_error
13841379[ `EventEmitter` ] : events.html#events_class_eventemitter
1385- [ `JSON.stringify` spec ] : https://tc39.github.io/ecma262/#sec-json.stringify
13861380[ `subprocess.connected` ] : #child_process_subprocess_connected
13871381[ `subprocess.disconnect()` ] : #child_process_subprocess_disconnect
13881382[ `subprocess.kill()` ] : #child_process_subprocess_kill_signal
0 commit comments