-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
micro does not die when killing crontab and using micro as editor #2085
Comments
AFAICS 0851499 did not fully fix this issue. Micro process indeed now exits if we kill crontab by closing the terminal window, but:
|
I tried searching a bit but I think Lines 453 to 470 in 0fa4a3a
I was testing a bit but micro seems to hang when terminal is closed and |
This is what nano does in this case:
This is how it looks like:
So among other things, nano indeed dies gracefully (unlike micro), saving the modified buffer to a backup file. Vim also behaves similarly:
Looks like this is where vim does that:
|
launching crontab with micro as editor, and then killing crontab (the entire terminal) causes micro to stay alive (other editors like vim does not exhibit this behaviour) and micro goes from eating ~0% cpu to eating ~40% cpu forever untill killed
sending a SIGTERM to the process does NOT kill it, but does cause it to drop its cpu usage from ~40% to ~13%
sending a SIGKILL does kill it as expected
how to reproduce
EDITOR=`which micro` crontab -e
Specifications
Version: 2.0.8
Commit hash: cfcb2e4
Compiled on February 21, 2021
OS: 5.9.16-1-MANJARO
Terminal: konsole (with zsh)
The text was updated successfully, but these errors were encountered: