]> granicus.if.org Git - strace/commitdiff
Fix confusing "resuming interrupted unknown" message
authorDenys Vlasenko <dvlasenk@redhat.com>
Tue, 7 Apr 2015 10:46:59 +0000 (12:46 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Tue, 7 Apr 2015 10:46:59 +0000 (12:46 +0200)
Dmitry reported seeing the following:

    $ sleep 2 & sleep 1; ./strace -erestart_syscall -p $!
    [1] 12345
    Process 12345 attached
    restart_syscall(<... resuming interrupted unknown ...>) = 0

Fixing it by replacing "unknown" with "system call".

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
syscall.c

index d54d8b662ab9a983a6696ba944f5eb282e9bbe45..1e19eb554d6d069637320c95bc28da4c1782eb9a 100644 (file)
--- a/syscall.c
+++ b/syscall.c
@@ -1264,7 +1264,7 @@ get_scno(struct tcb *tcp)
                        .nargs = MAX_ARGS,
                        .sys_flags = 0,
                        .sys_func = printargs,
-                       .sys_name = "unknown", /* not used */
+                       .sys_name = "system call",
                };
                tcp->s_ent = &unknown;
                tcp->qual_flg = UNDEFINED_SCNO | QUAL_RAW | DEFAULT_QUAL_FLAGS;