Skip to content

Can't get this to work with SIGTERM on Windows #2

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

Open
robx opened this issue Mar 11, 2022 · 1 comment
Open

Can't get this to work with SIGTERM on Windows #2

robx opened this issue Mar 11, 2022 · 1 comment

Comments

@robx
Copy link

robx commented Mar 11, 2022

I was trying to use the signal package to handle SIGTERM in a cross-platform way in the context of this cabal pull request: haskell/cabal#7921.

It turns out that apparently, GHC's Windows runtime doesn't deal with whatever taskkill sends meaningfully, and installing a SIGTERM handler with this package has no effect on Windows. Looking further, it seems that this package simply provides a thin wrapper around mingw's signal.h, which appears to not actually do much at all: https://sourceforge.net/p/mingw/mailman/message/16209215/

So I guess my questions are:

  • is there a way to use this package to meaningfully handle SIGTERM?
  • if not, in what scenario might this package actually be useful?
@Febbe
Copy link
Contributor

Febbe commented Oct 6, 2024

Ditch mingw and use ucrt64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants