2003-06-09 Roland McGrath <roland@redhat.com>
* strace.c (trace): Print a message and newline for a WIFEXITED report
from the process we just printed an unterminated syscall line for.
diff --git a/strace.c b/strace.c
index 5f1d155..13b42d4 100644
--- a/strace.c
+++ b/strace.c
@@ -2031,6 +2031,13 @@
fprintf(stderr,
"PANIC: attached pid %u exited\n",
pid);
+ if (tcp == tcp_last) {
+ if ((tcp->flags & (TCB_INSYSCALL|TCB_REPRINT))
+ == TCB_INSYSCALL)
+ tprintf(" <unfinished ... exit status %d>\n",
+ WEXITSTATUS(status));
+ tcp_last = NULL;
+ }
#ifdef TCB_GROUP_EXITING
handle_group_exit(tcp, -1);
#else