@@ -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### subprocess.channel
941937<!-- YAML
@@ -1097,9 +1093,8 @@ be used to send messages to the child process. When the child process is a
10971093Node.js instance, these messages can be received via the
10981094[ ` process.on('message') ` ] [ ] event.
10991095
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.
11031098
11041099For example, in the parent script:
11051100
@@ -1369,7 +1364,6 @@ unavailable.
13691364[ `ChildProcess` ] : #child_process_child_process
13701365[ `Error` ] : errors.html#errors_class_error
13711366[ `EventEmitter` ] : events.html#events_class_eventemitter
1372- [ `JSON.stringify` spec ] : https://tc39.github.io/ecma262/#sec-json.stringify
13731367[ `subprocess.connected` ] : #child_process_subprocess_connected
13741368[ `subprocess.disconnect()` ] : #child_process_subprocess_disconnect
13751369[ `subprocess.kill()` ] : #child_process_subprocess_kill_signal
0 commit comments