Skip to content

child_process: Add child_processes.isRootProcess flag #16258

@arei

Description

@arei
  • Version: Future
  • Platform: All
  • Subsystem: child_process

This is a new feature request to add a flag (boolean) to child_process, called something along the lines of child_process.isRootProcess that would return true if the current process is the "root" of the child_process.fork tree or false if the current process was a forked process and has an upstream ipc channel.

In essence this is a simple one-liner inside of child_process:

child_process.isRootProcess = !!process.channel;

or something similar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    child_processIssues and PRs related to the child_process subsystem.feature requestIssues that request new features to be added to Node.js.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions