diff options
author | Mattias Andrée <maandree@kth.se> | 2023-06-25 23:28:13 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-06-25 23:28:13 +0200 |
commit | 87d713d0a6826e9e4e7e359517997228c3332399 (patch) | |
tree | 090f6f936056afb37a4a93e47e0ac37599e5cae0 | |
parent | Some code improvements (diff) | |
download | sctrace-87d713d0a6826e9e4e7e359517997228c3332399.tar.gz sctrace-87d713d0a6826e9e4e7e359517997228c3332399.tar.bz2 sctrace-87d713d0a6826e9e4e7e359517997228c3332399.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | sctrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -125,7 +125,7 @@ restart_process(struct process *proc, int cmd, int sig) if (ptrace(cmd, proc->pid, NULL, sig)) { eprintf("ptrace %s %ju NULL %i:", cmd == PTRACE_CONT ? "PTRACE_CONT" : - cmd == PTRACE_LISTEN ? "PTRACE_LISTN" : + cmd == PTRACE_LISTEN ? "PTRACE_LISTEN" : cmd == PTRACE_SYSEMU ? "PTRACE_SYSEMU" : cmd == PTRACE_SYSCALL ? "PTRACE_SYSCALL" : "???", (uintmax_t)proc->pid, sig); @@ -228,7 +228,7 @@ handle_event(struct process *proc, int status) case SIGTTIN: case SIGTTOU: process_signalled(proc, sig, 1); - restart_process(proc, PTRACE_LISTEN, 0); + restart_process(proc, PTRACE_LISTEN, 0); /* TODO LISTEN only forks if SEIZED (original tracee) */ break; default: tprintf(proc, "\nTRACE_EVENT_STOP with signal %i (%s: %s)\n", |