Description of problem: strace on bash can leave the bash process in a stopped state when strace is killed with CTRL-C. Version-Release number of selected component (if applicable): bash-3.0-21.el4_8.2.x86_64 gdb-6.3.0.0-1.162.el4.x86_64 strace-4.5.16-1.el4_8.9.x86_64 How reproducible: every time Steps to Reproduce: 1. compile simple program to debug $ cat test.c #include<stdio.h> #include<stdlib.h> int main(void) { while(1) { printf("looping...\n"); sleep(1); } return 0; } $ gcc -g test.c 2. open two terminals and run the commands shown below to leave gdb in a stopped state terminal 1 terminal 2 ========== ========== $ echo $$ 18408 $ strace -v -f -T -tt -p 18408 $ gdb ./a.out CTRL-C to kill strace [GDB IS STOPPED] $ ps -o pid,comm,stat -p 18408,`pidof gdb` PID COMMAND STAT 18408 bash Ss 18606 gdb T+ $ kill -CONT 18606 [GDB CONTINUES] 3. open two terminals and run the commands below to leave bash in a stopped state terminal 1 terminal 2 ========== ========== $ echo $$ 18222 $ strace -v -f -T -tt -p 18222 $ gdb ./a.out (gdb) quit CTRL-C to kill strace [BASH IS STOPPED] $ ps -o pid,comm,stat -p 18222 PID COMMAND STAT 18222 bash Ts+ $ kill -CONT 18222 [BASH CONTINUES] Actual results: bash and/or gdb are left in a stopped state when strace is killed with CTRL-C Expected results: bash and/or gdb continue running normally Additional info: