I am running my program using screen and GDB.
How I run my program:
screen -dmS adapter "./run-adapter.sh"
gdb -ex "handle SIGPIPE nostop noprint pass" -ex run -args ./Adapter adapter.conf
The problem is when I try to exit my program by screen:
screen -X -S adapter quit
The screen is terminated nicely, but the program and its GDB are still remaining (checked by
ps aux command). Are there any ways to exit them when my screen is terminated?
Edited: As MarkPlotnick requested, my screen is
Screen version 4.00.03d (FAU) 23-Oct-06 and GDB is
GNU gdb (GDB) 7.7.
grep Sig /proc/$(pgrep Adapter)/status:
SigPnd: 0000000000040000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000620