Skip to content
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

Using process.exit() on a child process kill the main process and not the child process. #5774

Open
u5783402 opened this issue Sep 20, 2023 · 1 comment
Labels
bug Something isn't working node.js Compatibility with Node.js APIs

Comments

@u5783402
Copy link

What version of Bun is running?

1.0.2

What platform is your computer?

windows

What steps can reproduce the bug?

make a child process using nodejs or bun child process.
Use process.exit()

What is the expected behavior?

It should kill the child process and remove every files frome the cache (useful to fastly reload an app.

What do you see instead?

It kill the main process

Additional information

No response

@u5783402 u5783402 added the bug Something isn't working label Sep 20, 2023
@ghiscoding
Copy link

not sure if it's related or not, but there's this old issue #429 about process.on compatibility

@Electroid Electroid added the node.js Compatibility with Node.js APIs label Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working node.js Compatibility with Node.js APIs
Projects
None yet
Development

No branches or pull requests

3 participants