aboutsummaryrefslogtreecommitdiffstats
path: root/sctrace.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-06-25 23:28:13 +0200
committerMattias Andrée <maandree@kth.se>2023-06-25 23:28:13 +0200
commit87d713d0a6826e9e4e7e359517997228c3332399 (patch)
tree090f6f936056afb37a4a93e47e0ac37599e5cae0 /sctrace.c
parentSome code improvements (diff)
downloadsctrace-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.c4
1 files changed, 2 insertions, 2 deletions
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",