-
Notifications
You must be signed in to change notification settings - Fork 365
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
"Ctrl-C" during installation quits opam but the build continues #4400
Comments
Opam relay signal, but if the process don't catch them, opam can't really do something... See discussion in #3373 |
After the Ctrl-C, I saw a Maybe it is swallowed by bubblewrap? |
That should absolutely not be the case in general, so I would be extremely interested if you could provide a reproducible case, or at least more details on your build and how it happened; what often happens is that a process (typically, it's difficult to handle C-c properly in OCaml) eats the signal. But yes, probably not in the case of In fact, in any case, opam is expected to wait for the child processes to exit. So indeed bubblewrap may be the one causing trouble here, they have e.g. this open issue |
|
Thanks! |
Could indeed reproduce, thanks! Some early findings:
So what I am assuming is that |
I have seen that behavior in the past as well, but when I just tried to reproduce it, a SIGINT to |
I haven't tested this, but adding the
|
Dev meeting: we may be able to fix this with the bwrap option above, but it requires more work for bubblewrap version detection. Pushing this out to post 2.1.0 as it can go into a bugfix release and is not a critical bug for the 2.1.0 release. |
The |
I just noticed that when I cancel opam via Ctrl-C during the build of something that needs a long time to build, opam quits immediately -- but the build actually continues in the background, still taking up CPU and memory.
I would expect Ctrl-C to also cancel the running build.
The text was updated successfully, but these errors were encountered: