-
Notifications
You must be signed in to change notification settings - Fork 710
cabal-install 3.6 on OSX doesn't handle ctrl-c (interrupts) correctly #8078
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
Comments
@robx is our process handling expert |
it might be a problem related to how downloads are managed (private chat with @hasufell ), but either way, its not an area of cabal i'm familiar with, and it hints at some sort of serious architectural issues in how interrupts are registered and handled. |
Maybe it is already fixed #7929 |
a secondary thing is doing ctrl z may not have actually stopped the child package jobs from building? (or i just dont understand control z) |
it would be nice if this was shipped in a bug fix release or something... its kinda important user facing behavior :) i'll poke at it more and see if master is better behaved.. |
@jneira i'd be surprised if the bug didnt show up on other platforms |
Yeah this particular bug should be fixed in master. Regarding Ctrl-C handling, what happens is
(compare https://hackage.haskell.org/package/process-1.6.13.2/docs/System-Process.html#g:4) (I have no idea at this point of whether Ctrl-Z works reasonably.) |
yeah, it somewhat works in master thanks to #7929 and the main process is killed immediately but it lefts orphan subprocess as #7921 did not fix that for windows (but it did for other platforms afaik) so maybe we could remove the tag and rename the issue to remove the macos mention |
I think as bug report, this is a duplicate of #6322. |
oh yeah, good catch, @cartazio does that previous bug report represent yours enough to close this? |
yeah, sounds like the same bug, also is there any chance that there could be a bugfix release with this? |
Describe the bug
ctr+c should trigger a CLI application to start a clean shutdown process for the overall cli invocation, not for its many subtasks
To Reproduce
Steps to reproduce the behavior:
Please use version-prefixed commands (e.g.
v2-build
orv1-build
) to avoid ambiguity.Expected behavior
A clear and concise description of what you expected to happen.
ctrl c should start the shutdown of the build!
I think this used to work correctly?
System information
cabal
,ghc
versions ghc 9.2.2 ARM64, cabal 3.6Additional context
i think what might be happening is that the sub computations register their own interrupt handles to the OS and somehow those are picked up? i cant im
The text was updated successfully, but these errors were encountered: