diff options
author | timothy searcy <timmyzsearcy@gmail.com> | 2018-11-20 19:16:40 +0300 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2018-11-29 17:39:54 +0300 |
commit | 9e1c6eb6aae5e630e5d5b6c69478e6321c9297e2 (patch) | |
tree | 5dd690d7cd8419e7e81cf7e80077a8f6035bf67b /doc/api | |
parent | c708abb3ba2df6e285ac360838a5e313623f7d60 (diff) |
test: test and docs for detached fork process
This tests child process fork component in detached mode
by spawning a parent process that creates a child process.
We kill the parent process and check if the child is still
running.
Fixes: https://github.com/nodejs/node/issues/17592
PR-URL: https://github.com/nodejs/node/pull/24524
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/child_process.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/api/child_process.md b/doc/api/child_process.md index 7ba83b3528f..6b0182294a9 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -325,6 +325,9 @@ changes: * `args` {string[]} List of string arguments. * `options` {Object} * `cwd` {string} Current working directory of the child process. + * `detached` {boolean} Prepare child to run independently of its parent + process. Specific behavior depends on the platform, see + [`options.detached`][]). * `env` {Object} Environment key-value pairs. * `execPath` {string} Executable used to create the child process. * `execArgv` {string[]} List of string arguments passed to the executable. |