Replies: 0 comments 1 reply
-
That's simply how the UNIX process model works. It's not specific to Node.js. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I
fork
a child in a master script using:The child does a startup routine then do
process.disconnect()
.The master script receives the
disconnected
event and continue with operations dependent on the spawned child.Now: If I send a
SIGINT
orSIGTERM
to the master it cleans up and exits. All OK.But: If I omit the
detached: true
when forking the child the child process also receives these signals. Even if I do a.unref()
in addition todisconnect()
.My question is more on the curious side as of why the child get this signal even when both detached and dereferenced?
The
proc.subprocess.channel
is also undefined.Beta Was this translation helpful? Give feedback.
All reactions