Catch the Ctrl+C to properly exit of a TApplication

Hi,

How can I catch the signal emitted by Ctrl+C to exit properly of my TApplication ?

Thanks in advance

Jérémie


ROOT Version: 6.10/06
Platform: linux (ubuntu 16.04)
Compiler: g++ (GCC) 7.3.1


This post seems similar to what you are asking.

Hi, thank you.

This is dealing with a Ctrl+C on a graphical tool. I speak about a Crtl+C in the terminal (sorry I forgot to explain that)

Ok, I found the solution here : Ctrl-C singal handler under Win32 platform

I thought TApplication::Run was already catching ctrl-C?

Its possible, but in my case, it does not destroy correctly the application and I obtain seg faults.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.