Home | History | Annotate | Download | only in strace

Lines Matching refs:sig

55 #  define my_tgkill(pid, tid, sig) syscall (__NR_tgkill, (pid), (tid), (sig))
57 # define my_tgkill(pid, tid, sig) syscall (__NR_tkill, (tid), (sig))
63 # define my_tgkill(pid, tid, sig) kill ((tid), (sig))
127 static int detach(struct tcb *tcp, int sig);
130 static void interrupt(int sig);
142 static void reaper(int sig);
1637 /* detach traced process; continue with sig
1643 detach(tcp, sig)
1645 int sig;
1679 if ((error = ptrace(PTRACE_DETACH, tcp->pid, (char *) 1, sig)) == 0) {
1735 ptrace_restart(PTRACE_DETACH, tcp, sig);
1748 /* PTRACE_DETACH won't respect `sig' argument, so we post it here. */
1749 if (sig && kill(tcp->pid, sig) < 0)
1751 sig = 0;
1752 error = ptrace_restart(PTRACE_DETACH, tcp, sig);
1776 static void reaper(int sig)
1817 interrupt(sig)
1818 int sig;
1855 strsignal(sig)
1856 int sig;
1860 if (sig < 1 || sig >= NSIG) {
1861 sprintf(buf, "Unknown signal %d", sig);
1865 return _sys_siglist[sig];
1867 return sys_siglist[sig];
1947 wakeup_handler(sig)
1948 int sig;
2319 SIG == -1 TCP has already died (TCB_ATTACHED is clear, strace is parent).
2320 SIG == 0 Continuing TCP will perform an exit_group syscall.
2321 SIG == other Continuing TCP with SIG will kill the process.
2324 handle_group_exit(struct tcb *tcp, int sig)
2333 if (sig < 0) {
2352 detach(tcp, sig);
2356 if (ptrace_restart(PTRACE_CONT, tcp, sig) < 0) {
2366 and then we'll get to the SIG==-1 case. */