]> granicus.if.org Git - strace/commitdiff
waitid: always print 5th argument
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 11 Feb 2016 02:20:18 +0000 (02:20 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 11 Feb 2016 03:06:17 +0000 (03:06 +0000)
* wait.c (SYS_FUNC(waitid)): Do not check for tcp->s_ent->nargs
as waitid syscall has 5 arguments.

wait.c

diff --git a/wait.c b/wait.c
index 156292fc57100d001d0b47f4f76a88321c9d209f..39badf277abf8d08f293b63cf893c3ff6e4de673 100644 (file)
--- a/wait.c
+++ b/wait.c
@@ -187,11 +187,9 @@ SYS_FUNC(waitid)
                /* options */
                tprints(", ");
                printflags(wait4_options, tcp->u_arg[3], "W???");
-               if (tcp->s_ent->nargs > 4) {
-                       /* usage */
-                       tprints(", ");
-                       printrusage(tcp, tcp->u_arg[4]);
-               }
+               /* usage */
+               tprints(", ");
+               printrusage(tcp, tcp->u_arg[4]);
        }
        return 0;
 }