diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2015-10-09 20:47:29 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2015-10-09 20:47:29 +0000 |
commit | 7f2c12c33e82ee61c3cc32022ebc69ec4d44270e (patch) | |
tree | 2c352bdeee9597bc278b23f9fb3e46896776a52f /usr.bin | |
parent | c85c1e4bd7322c3b4f511e20ad1d6430db0b9ec0 (diff) | |
download | FreeBSD-src-7f2c12c33e82ee61c3cc32022ebc69ec4d44270e.zip FreeBSD-src-7f2c12c33e82ee61c3cc32022ebc69ec4d44270e.tar.gz |
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
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/truss/main.c | 2 | ||||
-rw-r--r-- | usr.bin/truss/truss.1 | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/truss/main.c b/usr.bin/truss/main.c index d46d01e..5eec953 100644 --- a/usr.bin/truss/main.c +++ b/usr.bin/truss/main.c @@ -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; diff --git a/usr.bin/truss/truss.1 b/usr.bin/truss/truss.1 index 7c148df..fb02cb4 100644 --- a/usr.bin/truss/truss.1 +++ b/usr.bin/truss/truss.1 @@ -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, |