From 5fcdae5359829a63bc1cfbb5fc63a5bfde2a949d Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Mon, 22 Jan 2018 01:55:05 +0100 Subject: [PATCH] strace.c: reset printing_tcp on print_event_exit print_event_exit should have printing_tcp setup analogous to printleader and syscall_exit_trace before printing its part, otherwise it spuriously resets curcol in line_ended for the stale printing_tcp if followfork == 2. * strace.c (print_event_exit): Set printing_tcp to tcp before printing exiting event line and calling line_ended. --- strace.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/strace.c b/strace.c index 9fc353fa..0a819580 100644 --- a/strace.c +++ b/strace.c @@ -2232,6 +2232,8 @@ print_event_exit(struct tcb *tcp) */ tprints(" "); } + + printing_tcp = tcp; tprints(") "); tabto(); tprints("= ?\n"); -- 2.40.0