Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

cluster: allow args and execArgv to be set on fork() #7750

Closed
wants to merge 4 commits into from
Closed

cluster: allow args and execArgv to be set on fork() #7750

wants to merge 4 commits into from

Conversation

cjihrig
Copy link

@cjihrig cjihrig commented Jun 7, 2014

Current, cluster.fork() only allows an environment to be passed to the worker. This commit allows both the args and execArgv to be set also. If they are not specified, the existing behavior is used. Closes #4149.

I would also like to propose a breaking changing change to the cluster.fork() signature. My suggestion, since cluster is listed as experimental, is to make the signature cluster.fork([args], [options]), where args and options mimic the arguments of the same name passed to child_process.fork().

Current, cluster.fork() only allows an environment to be passed
to the worker. This commit allows both the args and execArgv to
be set also.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants