Let -c imply -S (hide signal output).

Without this, the signals are shown seemingly randomly in the output before
the final summary is shown.  This is especially noticeable when there is
not much output from the application being traced.

Discussed with:	jhb
Relnotes:	yes
This commit is contained in:
bdrewery 2015-10-09 20:47:29 +00:00
parent c85c1e4bd7
commit 7f2c12c33e
2 changed files with 3 additions and 3 deletions

View File

@ -111,7 +111,7 @@ main(int ac, char **av)
trussinfo->flags |= EXECVEARGS;
break;
case 'c': /* Count number of system calls and time. */
trussinfo->flags |= COUNTONLY;
trussinfo->flags |= (COUNTONLY | NOSIGS);
break;
case 'e': /* Print execve() environment strings. */
trussinfo->flags |= EXECVEENVS;

View File

@ -1,6 +1,6 @@
.\" $FreeBSD$
.\"
.Dd October 5, 2015
.Dd October 9, 2015
.Dt TRUSS 1
.Os
.Sh NAME
@ -37,7 +37,7 @@ Show the argument strings that are passed in each
.Xr execve 2
system call.
.It Fl c
Do not display individual system calls.
Do not display individual system calls or signals.
Instead, before exiting, print a summary containing for each system call:
the total system time used,
the number of times the call was invoked,