Lines Matching defs:sig
61 # define my_tkill(tid, sig) syscall(__NR_tkill, (tid), (sig))
67 # define my_tkill(tid, sig) kill((tid), (sig))
168 static void interrupt(int sig);
388 ptrace_restart(int op, struct tcb *tcp, int sig)
394 ptrace(op, tcp->pid, (void *) 0, (long) sig);
424 perror_msg("ptrace(PTRACE_%s,pid:%d,sig:%d)", msg, tcp->pid, sig);
450 static void kill_save_errno(pid_t pid, int sig)
454 (void) kill(pid, sig);
859 unsigned int sig;
884 sig = WSTOPSIG(status);
886 error_msg("detach wait: event:%d sig:%d",
887 (unsigned)status >> 16, sig);
890 if (event == PTRACE_EVENT_STOP /*&& sig == SIGTRAP*/) {
892 * sig == SIGTRAP: PTRACE_INTERRUPT stop.
893 * sig == other: process was already stopped
894 * with this stopping sig (see tests/detach-stopped).
895 * Looks like re-injecting this sig is not necessary
898 sig = 0;
910 if (sig == syscall_trap_sig)
911 sig = 0;
915 ptrace_restart(PTRACE_DETACH, tcp, sig);
920 if (sig == SIGSTOP) {
925 if (sig == syscall_trap_sig)
926 sig = 0;
928 error = ptrace_restart(PTRACE_CONT, tcp, sig);
1832 interrupt(int sig)
1834 interrupted = sig;
1851 sprintf(buf, "WIFSIGNALED,sig=%s",
1857 sprintf(buf, "WIFSTOPPED,sig=%s", signame(WSTOPSIG(status)));
2008 print_stopped(struct tcb *tcp, const siginfo_t *si, const unsigned int sig)
2012 && (qual_flags[sig] & QUAL_SIGNAL)
2016 tprintf("--- %s ", signame(sig));
2020 tprintf("--- stopped by %s ---\n", signame(sig));
2054 unsigned int sig;
2191 sig = WSTOPSIG(status);
2199 * PTRACE_INTERRUPT-stop has sig == SIGTRAP here.
2201 switch (sig) {
2221 if (sig == SIGSTOP && (tcp->flags & TCB_IGNORE_ONE_SIGSTOP)) {
2228 if (sig != syscall_trap_sig) {
2241 print_stopped(tcp, stopped ? NULL : &si, sig);
2289 sig = 0;
2292 if (ptrace_restart(PTRACE_SYSCALL, tcp, sig) < 0) {