@@ -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
0 commit comments