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

windows: On exit cant handle CTRL_CLOSE_EVENT / CTRL_LOGOFF_EVENT / CTRL_SHUTDOWN_EVENT #16899

Open
steve02081504 opened this issue Jan 30, 2025 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@steve02081504
Copy link

steve02081504 commented Jan 30, 2025

What version of Bun is running?

1.2.0

What platform is your computer?

windows x64

What steps can reproduce the bug?

  • Create a program that creates the test.txt file on exit
  • Run
  • Exit the program by clicking the close button in the upper left corner of the terminal.
  • Notice that no file was created.

What is the expected behavior?

  • creates the test.txt file

What do you see instead?

none.

Additional information

https://learn.microsoft.com/en-us/windows/console/handlerroutine#parameters
https://learn.microsoft.com/en-us/windows/console/setconsolectrlhandler
denoland/deno#27819

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant