From 87d713d0a6826e9e4e7e359517997228c3332399 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 25 Jun 2023 23:28:13 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- sctrace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sctrace.c') diff --git a/sctrace.c b/sctrace.c index fe1ff5e..fde5a1d 100644 --- a/sctrace.c +++ b/sctrace.c @@ -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", -- cgit v1.2.3-70-g09d2