Skip to content

Commit 333e833

Browse files
a0viedojasnell
authored andcommitted
doc: add method links in child_process.markdown
Added links to referenced methods. PR-URL: #3186 Reviewed-By: Roman Reiss <[email protected]>
1 parent 0cfc6d3 commit 333e833

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doc/api/child_process.markdown

+8-8
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ See `kill(2)`
222222
* `callback` {Function}
223223
* Return: Boolean
224224

225-
When using `child_process.fork()` you can write to the child using
225+
When using [`child_process.fork()`](#child_process_child_process_fork_modulepath_args_options) you can write to the child using
226226
`child.send(message[, sendHandle][, callback])` and messages are received by
227227
a `'message'` event on the child.
228228

@@ -539,7 +539,7 @@ will not stay running in the background unless it is provided with a `stdio`
539539
configuration that is not connected to the parent. If the parent's `stdio` is
540540
inherited, the child will remain attached to the controlling terminal.
541541

542-
See also: `child_process.exec()` and `child_process.fork()`
542+
See also: [`child_process.exec()`](#child_process_child_process_exec_command_options_callback) and [`child_process.fork()`](#child_process_child_process_fork_modulepath_args_options)
543543

544544
### child_process.exec(command[, options], callback)
545545

@@ -622,9 +622,9 @@ the existing process and uses a shell to execute the command.*
622622
* `stderr` {Buffer}
623623
* Return: ChildProcess object
624624

625-
This is similar to `child_process.exec()` except it does not execute a
625+
This is similar to [`child_process.exec()`](#child_process_child_process_exec_command_options_callback) except it does not execute a
626626
subshell but rather the specified file directly. This makes it slightly
627-
leaner than `child_process.exec`. It has the same options.
627+
leaner than [`child_process.exec()`](#child_process_child_process_exec_command_options_callback). It has the same options.
628628

629629

630630
### child_process.fork(modulePath[, args][, options])
@@ -645,10 +645,10 @@ leaner than `child_process.exec`. It has the same options.
645645
* `gid` {Number} Sets the group identity of the process. (See setgid(2).)
646646
* Return: ChildProcess object
647647

648-
This is a special case of the `spawn()` functionality for spawning Node.js
648+
This is a special case of the [`child_process.spawn()`](#child_process_child_process_spawn_command_args_options) functionality for spawning Node.js
649649
processes. In addition to having all the methods in a normal ChildProcess
650650
instance, the returned object has a communication channel built-in. See
651-
`child.send(message, [sendHandle])` for details.
651+
[`child.send(message, [sendHandle])`](#child_process_child_send_message_sendhandle_callback) for details.
652652

653653
These child Node.js processes are still whole new instances of V8. Assume at
654654
least 30ms startup and 10mb memory for each new Node.js. That is, you cannot
@@ -732,7 +732,7 @@ process has exited.
732732

733733
If the process times out, or has a non-zero exit code, this method ***will***
734734
throw. The `Error` object will contain the entire result from
735-
[`child_process.spawnSync`](#child_process_child_process_spawnsync_command_args_options)
735+
[`child_process.spawnSync()`](#child_process_child_process_spawnsync_command_args_options)
736736

737737
### child_process.execFileSync(file[, args][, options])
738738

@@ -763,7 +763,7 @@ process has exited.
763763

764764
If the process times out, or has a non-zero exit code, this method ***will***
765765
throw. The `Error` object will contain the entire result from
766-
[`child_process.spawnSync`](#child_process_child_process_spawnsync_command_args_options)
766+
[`child_process.spawnSync()`](#child_process_child_process_spawnsync_command_args_options)
767767

768768
[EventEmitter]: events.html#events_class_events_eventemitter
769769
[net.Server]: net.html#net_class_net_server

0 commit comments

Comments
 (0)