diff options
author | timothy searcy <timmyzsearcy@gmail.com> | 2018-11-20 08:16:40 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-11-28 11:14:37 -0800 |
commit | f051737ee4ebb7dfa25abc91f7a4797bd8fe0cb6 (patch) | |
tree | 6e91e281a6ff8f4891a8ac07da41b9e4ce93bf9a /doc/api/child_process.md | |
parent | 804138093abb2c63cfaba5ee058e18df19b38f3e (diff) | |
download | android-node-v8-f051737ee4ebb7dfa25abc91f7a4797bd8fe0cb6.tar.gz android-node-v8-f051737ee4ebb7dfa25abc91f7a4797bd8fe0cb6.tar.bz2 android-node-v8-f051737ee4ebb7dfa25abc91f7a4797bd8fe0cb6.zip |
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/child_process.md')
-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 b3079422ba..34f0e612f8 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. |