[IPython-dev] Ctrl-C quitting ipython
Hans Meine
hans_meine at gmx.net
Wed Nov 3 12:08:03 EDT 2010
Op den Middeweken 03 November 2010 Klock 16:51:04 hett Gael Varoquaux
schreven:
> On Wed, Nov 03, 2010 at 04:49:45PM +0100, Hans Meine wrote:
> > Op den Middeweken 03 November 2010 Klock 15:09:50 hett Hans Meine
> > schreven:
> > > The result: "Program exited with code 01." - looks like sys.exit(1) (or
> > > the equivalent in C in some library) being called. Probably some
> > > extension installed a signal handler (we suspect openmesh).
> >
> > Problem solved, it was "from enthought.tvtk.api import tvtk" which
> > installed a SIGINT handler, and updating the ETS helped.
>
> Ugly! How did updating ETS help? Is the SIGINT handler removed in the new
> ETS?
I don't know the details, but that's my impression, yes. Such are the risks
of running software from development repositories, I guess... ;-)
Unfortunately, it's probably not possible to detect this within ipython,
right? After all, the SIGINT handler might also have played nice. It would
be interesting to know
- whether we can detect and report signal handlers being installed
- whether that would be annoying (don't know how noisy the result would be)
- whether we can catch exit() being called and at least report "IPython
noticed some extension/C-code called exit()", which would have at least
reduced the debugging time for us
Greetings,
Hans
More information about the IPython-dev
mailing list