Home | History | Annotate | Download | only in strace

Lines Matching full:sig

93 static void interrupt P((int sig));
109 static void reaper P((int sig));
1210 /* detach traced process; continue with sig */
1213 detach(tcp, sig)
1215 int sig;
1223 sig = SIGKILL;
1235 if ((error = ptrace(PTRACE_DETACH, tcp->pid, (char *) 1, sig)) == 0) {
1286 tcp->pid, (char *) 1, sig)) < 0) {
1305 /* PTRACE_DETACH won't respect `sig' argument, so we post it here. */
1306 if (sig && kill(tcp->pid, sig) < 0)
1308 sig = 0;
1309 if ((error = ptrace(PTRACE_DETACH, tcp->pid, (char *) 1, sig)) < 0)
1384 reaper(sig)
1385 int sig;
1433 interrupt(sig)
1434 int sig;
1471 strsignal(sig)
1472 int sig;
1476 if (sig < 1 || sig >= NSIG) {
1477 sprintf(buf, "Unknown signal %d", sig);
1481 return _sys_siglist[sig];
1483 return sys_siglist[sig];
1569 wakeup_handler(sig)
1570 int sig;
1935 SIG == -1 TCP has already died (TCB_ATTACHED is clear, strace is parent).
1936 SIG == 0 Continuing TCP will perform an exit_group syscall.
1937 SIG == other Continuing TCP with SIG will kill the process.
1940 handle_group_exit(struct tcb *tcp, int sig)
1949 if (sig < 0) {
1977 tcp->pid, sig, leader->pid);
1978 detach(leader, sig);
1983 detach(tcp, sig);
1985 else if (ptrace(PTRACE_CONT, tcp->pid, (char *) 1, sig) < 0) {
1996 and then we'll get to the SIG==-1 case. */