Created
January 2, 2017 14:22
-
-
Save ndelangen/5189ca677aab002107aecbad2f92e05e to your computer and use it in GitHub Desktop.
A simple way to just create a silent child process is to pass a options object and set the `silent` property
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fork = require('child_process').fork; | |
const program = path.resolve('other.js'); | |
const child = fork(program, [], { | |
silent: true | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment