Possible to crash command-not-found if ctrl+c is sent really really early
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
command-not-found |
New
|
Undecided
|
Unassigned |
Bug Description
It's possible to crash /usr/lib/
Admittedly, it's hard to trigger this bug; I accidentally triggered it with the help of hdapsd to pause my hard disk while the first few imports are being made, but before "import sys" is run.
I've attached the patch which should resolve this issue. Whether it's particularly better than what we currently have isn't really clear. Perhaps "import sys" should be moved to before the try block.
Thanks, I'll apply this