@@ -40,8 +40,9 @@ the event loop until the spawned process either exits or is terminated.
40
40
41
41
For convenience, the ` child_process ` module provides a handful of synchronous
42
42
and asynchronous alternatives to [ ` child_process.spawn() ` ] [ ] and
43
- [ ` child_process.spawnSync() ` ] [ ] . * Note that each of these alternatives are
44
- implemented on top of [ ` child_process.spawn() ` ] [ ] or [ ` child_process.spawnSync() ` ] [ ] .*
43
+ [ ` child_process.spawnSync() ` ] [ ] . Note that each of these alternatives are
44
+ implemented on top of [ ` child_process.spawn() ` ] [ ] or
45
+ [ ` child_process.spawnSync() ` ] [ ] .
45
46
46
47
* [ ` child_process.exec() ` ] [ ] : spawns a shell and runs a command within that
47
48
shell, passing the ` stdout ` and ` stderr ` to a callback function when
@@ -53,9 +54,9 @@ implemented on top of [`child_process.spawn()`][] or [`child_process.spawnSync()
53
54
specified module with an IPC communication channel established that allows
54
55
sending messages between parent and child.
55
56
* [ ` child_process.execSync() ` ] [ ] : a synchronous version of
56
- [ ` child_process.exec() ` ] [ ] that * will* block the Node.js event loop.
57
+ [ ` child_process.exec() ` ] [ ] that will block the Node.js event loop.
57
58
* [ ` child_process.execFileSync() ` ] [ ] : a synchronous version of
58
- [ ` child_process.execFile() ` ] [ ] that * will* block the Node.js event loop.
59
+ [ ` child_process.execFile() ` ] [ ] that will block the Node.js event loop.
59
60
60
61
For certain use cases, such as automating shell scripts, the
61
62
[ synchronous counterparts] [ ] may be more convenient. In many cases, however,
@@ -527,8 +528,8 @@ added: v0.7.10
527
528
528
529
On Windows, setting ` options.detached ` to ` true ` makes it possible for the
529
530
child process to continue running after the parent exits. The child will have
530
- its own console window. * Once enabled for a child process, it cannot be
531
- disabled* .
531
+ its own console window. Once enabled for a child process, it cannot be
532
+ disabled.
532
533
533
534
On non-Windows platforms, if ` options.detached ` is set to ` true ` , the child
534
535
process will be made the leader of a new process group and session. Note that
@@ -611,7 +612,7 @@ pipes between the parent and child. The value is one of the following:
611
612
for fds 0 - 2 are also available as [ ` subprocess.stdin ` ] [ ] ,
612
613
[ ` subprocess.stdout ` ] [ ] and [ ` subprocess.stderr ` ] [ ] , respectively.
613
614
2 . ` 'ipc' ` - Create an IPC channel for passing messages/file descriptors
614
- between parent and child. A [ ` ChildProcess ` ] [ ] may have at most * one* IPC
615
+ between parent and child. A [ ` ChildProcess ` ] [ ] may have at most one IPC
615
616
stdio file descriptor. Setting this option enables the
616
617
[ ` subprocess.send() ` ] [ ] method. If the child is a Node.js process, the
617
618
presence of an IPC channel will enable [ ` process.send() ` ] [ ] and
@@ -798,9 +799,9 @@ The `child_process.execSync()` method is generally identical to
798
799
[ ` child_process.exec() ` ] [ ] with the exception that the method will not return
799
800
until the child process has fully closed. When a timeout has been encountered
800
801
and ` killSignal ` is sent, the method won't return until the process has
801
- completely exited. * Note that if the child process intercepts and handles the
802
+ completely exited. Note that if the child process intercepts and handles the
802
803
` SIGTERM ` signal and doesn't exit, the parent process will wait until the child
803
- process has exited.*
804
+ process has exited.
804
805
805
806
If the process times out or has a non-zero exit code, this method will throw.
806
807
The [ ` Error ` ] [ ] object will contain the entire result from
@@ -1329,8 +1330,8 @@ added: v0.1.90
1329
1330
1330
1331
A ` Writable Stream ` that represents the child process's ` stdin ` .
1331
1332
1332
- * Note that if a child process waits to read all of its input, the child will not
1333
- continue until this stream has been closed via ` end() ` .*
1333
+ Note that if a child process waits to read all of its input, the child will not
1334
+ continue until this stream has been closed via ` end() ` .
1334
1335
1335
1336
If the child was spawned with ` stdio[0] ` set to anything other than ` 'pipe' ` ,
1336
1337
then this will be ` null ` .
0 commit comments