Ignoring signals from interrupting GDB Create a file ${HOME}/.gdbinit if it does not exist already. Insert the lines to ignore signals SIGUSR1 and SIGUSR2. handle SIGUSR1 print nostop pass handle SIGUSR2 print nostop pass