diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-02-01 04:03:25 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2019-02-10 16:33:57 +0800 |
commit | 84000835e2be2e5b1936d774ed4c4a0106c966a4 (patch) | |
tree | f71f94c92976cd301df62aa0052cb1b3f7a68fa0 /lib/internal/process | |
parent | 70f4f08a9f0902056ac47271f9d3a761fcee4715 (diff) | |
download | android-node-v8-84000835e2be2e5b1936d774ed4c4a0106c966a4.tar.gz android-node-v8-84000835e2be2e5b1936d774ed4c4a0106c966a4.tar.bz2 android-node-v8-84000835e2be2e5b1936d774ed4c4a0106c966a4.zip |
process: group main thread execution preparation code
This patch groups the preparation of main thread execution into
`prepareMainThreadExecution()` and removes the cluster IPC
setup in worker thread bootstrap since clusters do not use
worker threads for its implementation and it's unlikely to change.
PR-URL: https://github.com/nodejs/node/pull/26000
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Diffstat (limited to 'lib/internal/process')
-rw-r--r-- | lib/internal/process/main_thread_only.js | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/internal/process/main_thread_only.js b/lib/internal/process/main_thread_only.js index 0ce063f928..96c57fda35 100644 --- a/lib/internal/process/main_thread_only.js +++ b/lib/internal/process/main_thread_only.js @@ -152,22 +152,8 @@ function createSignalHandlers() { }; } -function setupChildProcessIpcChannel() { - const assert = require('internal/assert'); - - const fd = parseInt(process.env.NODE_CHANNEL_FD, 10); - assert(fd >= 0); - - // Make sure it's not accidentally inherited by child processes. - delete process.env.NODE_CHANNEL_FD; - - require('child_process')._forkChild(fd); - assert(process.send); -} - module.exports = { wrapProcessMethods, createSignalHandlers, - setupChildProcessIpcChannel, wrapPosixCredentialSetters }; |