-
-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing IPC chanel #501
Comments
Closed
Thanks for the awesome writeup! I think I'll just kill child processes instead, the amount of hacks are becoming unmanageable and recommending |
Yep, if you have plans to remove child process in near future you can close this issue, because
also produces IPC is enabled |
Closing with #536. Thanks for your patience! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I've noticed yet another problem with a
spawn
of child process.For now ts-node has the following option while creating a child node:
stdio: 'inherit'
.And according node.js docs it means "no IPC" (Inter-process communication)
In reality this breaks a communication with yet another parent:
parent.js:
child.ts:
will produce IPC is not enabled
See more details in the sample repository with proper environment.
So I propose to replace the
stdio
option value with['inherit', 'inherit', 'inherit', 'ipc']
in order to enable IPC. I think it's quite safe change because according the stdio docAfter such modification the sample will produce IPC is enabled
If someone is wondering about real-life use case sample:
In this chain wait until the server will start is usually implemented in IPC way like
process.send('online')
and ts-node breaks this for nowPR #502
The text was updated successfully, but these errors were encountered: