I see that gdb has specialized SIGCONT and SIGSTOP handling as per https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=9b224c5e and bug #17024 It's impacting my use case where I'm scripting gdb and wrapping with the timeout(1) command. The timeout command will send a SIGCONT in case the command it's monitoring (gdb in this case) is stopped. I thought I might be able to get gdb to just ignore this signal with "handle SIGCONT nostop noprint nopass", but even with that _intermittently_ gdb will fail to stop a running process when it receives a SIGTERM and SIGCONT. Note when in this state, sending any signal to the process that gdb is running, will cause that process to exit and then unlock gdb.