Open AMDmi3 opened 3 years ago
I'm seeing the same issue here, being able to use CTRL-C to actually stop pkg would be good.
Packaged ports from latest, following a major upgrade of base (without pkgbase) from 13.2-RELEASE-p7 to 14.0-RELEASE-p2.
In this case, I keyed Control-C (00:01:32 on the timeline of a screen recording) after it became clear that n would not have the required effect:
00:37:18 on the timeline, with an assumption that things would be endless following the attempted cancellation, I restarted the OS:
Please note, I don't need help with this particular package upgrade scenario; it was a test. No frustration for me.
The three frames from the recording are, partly, to demonstrate the potential for a user to be frustrated in an OS upgrade situation.
Fixed?
From ports-mgmt/pkg: update to 1.21.0 · freebsd/freebsd-ports@c923e0d (2024-04-02):
- support job cancellation (packagekit support)
I just reported this as https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280092
It's still an issue in 1.21.3.
(Note that a similar behavior happens on EOF = ^D, for different internal reasons maybe.)
So I run
pkg upgrade
(pkg 1.16.3), it shows what's it going to do and asksProceed with this action? [Y/n]:
I hit ^C to interrupt it, but instead it proceeds:By
/tmp
after the prompt I suspect that multiple processes are involved here, one of which is terminated, but another erroneously continues.