From 0a396906981a03f93c07cb912585d0679dd50899 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 10 Jun 2003 03:05:53 +0000 Subject: [PATCH] 2003-06-09 Roland McGrath * strace.c (trace): Print a message and newline for a WIFEXITED report from the process we just printed an unterminated syscall line for. --- strace.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/strace.c b/strace.c index 5f1d155a..13b42d4d 100644 --- a/strace.c +++ b/strace.c @@ -2031,6 +2031,13 @@ Process %d attached (waiting for parent)\n", fprintf(stderr, "PANIC: attached pid %u exited\n", pid); + if (tcp == tcp_last) { + if ((tcp->flags & (TCB_INSYSCALL|TCB_REPRINT)) + == TCB_INSYSCALL) + tprintf(" \n", + WEXITSTATUS(status)); + tcp_last = NULL; + } #ifdef TCB_GROUP_EXITING handle_group_exit(tcp, -1); #else -- 2.40.0