I have created a HUP signal handler in linux only C++ app (as per QT link) and am working in QT Creator 5.1. The code compiles and runs fine in QT Creator, but when I send the HUP signal from a command line, QT Creator stops with a popup:
"The inferior stopped because it received a signal from the operating system" along with HUP signal information.
If I click the CONTINUE button on the debug panel I see my qDebug statements printout from my HUP signal handler in my code. My question is, is this normal behaviour? Why is QT Creator trapping HUP and stopping my code, when my code is properly handling the HUP signal?
Just uncheck the box "Show a message box when receiving a signal" in Tools -> Options... -> Debugger -> GDB.
P.S. Of course that concerns only a popup window in Qt Creator, but the main part is a debugger. If you want gdb not to catch a signal but pass it to your program, you need to give gdb a command like the following:
handle SIGHUP pass nostop noprint (see Window -> Views -> Debugger Log or Tools -> Options... -> Debugger -> GDB ->
GDB startup script Debugging Helper Customization (like the image below for the SIGINT signal)).