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
Security file is not removed after shutdown by Ctrl+C or kill -INT #1601
Comments
OK, I found that KeyboardInterrupt is treated in the master branch. But it does not treat shutdown by kill, right? |
Yes, master does a much better job cleaning up after itself, but that does not include kill (that's kind of the point of Kill - you can't handle it).
Yes, this is always safe. In fact, I've been meaning to add a simple command |
Cleaning command sounds nice! You can handle kill by doing something with the signal module: http://danielkaes.wordpress.com/2009/06/04/how-to-catch-kill-events-with-python/ |
TERM is not KILL - you cannot catch KILL, but we might as well catch TERM as well as INT. |
Sorry, I mean kill command (without option, resulting in TERM). Yes, it would be much better if IPython can handle it. |
See PR #1609 |
Great! I will close the issue. |
exit notebook cleanly on SIGINT, SIGTERM, and add a safety (text) dialog to ask for exit confirmation. This prevents an accidental Ctrl-C in the wrong window from destroying a user's potentially large set of notebooks that could have taken a long time to create. Closes ipython#1601
exit notebook cleanly on SIGINT, SIGTERM, and add a safety (text) dialog to ask for exit confirmation. This prevents an accidental Ctrl-C in the wrong window from destroying a user's potentially large set of notebooks that could have taken a long time to create. Closes ipython#1601
I am using IPython 0.12 (Ubuntu 11.10, Python 2.7.2+).
This is how to reproduce. I just open one new notebook after starting the server.
BTW, is it safe to do
rm ~/.config/ipython/profile_*/security/*
when there is no IPython instance running?The text was updated successfully, but these errors were encountered: