]> granicus.if.org Git - strace/commitdiff
Enhance error diagnostics of exit/exit_group decoder
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 26 Nov 2016 20:51:52 +0000 (20:51 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 26 Nov 2016 20:54:31 +0000 (20:54 +0000)
* exit.c (SYS_FUNC(exit)): Print the name of syscall that has returned.

exit.c

diff --git a/exit.c b/exit.c
index aec01da18fe03b340e2115bf6645b881a4ad2186..b10f90c238bda2f6a1c3eb5f50500c4de6c837a8 100644 (file)
--- a/exit.c
+++ b/exit.c
@@ -3,7 +3,7 @@
 SYS_FUNC(exit)
 {
        if (exiting(tcp)) {
-               error_msg("_exit returned!");
+               error_msg("%s returned!", tcp->s_ent->sys_name);
                return -1;
        }
        /* special case: we stop tracing this process, finish line now */