Description of problem:
When running this little program under strace the child just dies when C-c is pressed. Without strace the signal is intercepted and handled. strace should pass signals that can the intercepted on to the child.
static sigjmp_buf b;
h (int s)
siglongjmp (b, 1);
signal (SIGINT, h);
if (sigsetjmp (b, 0) == 0)
puts ("now C-c");
puts ("SIGINT caught");
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.compile program above
program just dies, signal handler is not invoked (and shown that this happens)
strace passes signal on to child process
Redirect the trace output with -o, which makes strace non-interactive. An interactive strace will terminate the tracee after receiving SIGINT.