You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run it with bun run index.js and press ctrl+C to send a SIGINT, the execution will stop because "end" won't get printed but the process won't be terminated and it will start eating all the CPU power
If you add a handler on SIGINT it will be handled correctly and execution will stop if process.exit is called
What version of Bun is running?
1.1.28-canary.3+866a6d918
What platform is your computer?
Darwin 22.3.0 arm64 arm
What steps can reproduce the bug?
cc
function in a file called c.jsbun run index.js
and pressctrl+C
to send a SIGINT, the process will be terminated as expectedmyFn
fromc.js
in index.js, even without ever calling itbun run index.js
and pressctrl+C
to send a SIGINT, the execution will stop because "end" won't get printed but the process won't be terminated and it will start eating all the CPU powerprocess.exit
is calledWhat is the expected behavior?
The process should have been terminated even without a handler on SIGINT, as it does when
myFn
is not imported in the index file.What do you see instead?
Importing a function created with
cc
will cause weird behaviours on SIGINTAdditional information
This behaviour happens only in the current canary revision, in the stable version it works as expected.
The text was updated successfully, but these errors were encountered: