Skip to content

Allow to childProcess.fork() Electron from Electron #6656

Description

@sindresorhus

Currently, if you try to use childProcess.fork() from a script running in Electron, it will fork a new process with the ELECTRON_RUN_AS_NODE=1 environment variable hard-coded. This is a good default as otherwise it would break a lot of existing Node.js modules. However, there should be a way to override it. I need to be able to fork a Electron process from Electron without the ELECTRON_RUN_AS_NODE environment variable, so require('electron') is available.

Previous discussion: #4520

  • Electron version: 1.3.1
  • Operating system: macOS 10.11.6

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions