Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Oct 2015 20:47:29 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r289080 - head/usr.bin/truss
Message-ID:  <201510092047.t99KlU2a000188@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Fri Oct  9 20:47:29 2015
New Revision: 289080
URL: https://svnweb.freebsd.org/changeset/base/289080

Log:
  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

Modified:
  head/usr.bin/truss/main.c
  head/usr.bin/truss/truss.1

Modified: head/usr.bin/truss/main.c
==============================================================================
--- head/usr.bin/truss/main.c	Fri Oct  9 19:38:53 2015	(r289079)
+++ head/usr.bin/truss/main.c	Fri Oct  9 20:47:29 2015	(r289080)
@@ -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;

Modified: head/usr.bin/truss/truss.1
==============================================================================
--- head/usr.bin/truss/truss.1	Fri Oct  9 19:38:53 2015	(r289079)
+++ head/usr.bin/truss/truss.1	Fri Oct  9 20:47:29 2015	(r289080)
@@ -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 passe
 .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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510092047.t99KlU2a000188>