-
-
Notifications
You must be signed in to change notification settings - Fork 37.3k
child_process: 'close' not emitted after .disconnect() in parent process #19433
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
Description
Activity
Metadata
Metadata
Assignees
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
When calling
child.disconnect()from a parent process (not in cluster mode), the child process object does not emit acloseevent after theexitevent.If however the child process itself calls
process.disconnect()it works as expected.Example:
Output:
Expected Output: