Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Aug 2006 16:53:23 GMT
From:      Howard Su <howardsu@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 102952 for review
Message-ID:  <200608011653.k71GrNeC015773@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=102952

Change 102952 by howardsu@su_vm on 2006/08/01 16:52:29

	Respect -S switch.

Affected files ...

.. //depot/projects/dtrace/src/usr.bin/truss/main.c#5 edit

Differences ...

==== //depot/projects/dtrace/src/usr.bin/truss/main.c#5 (text+ko) ====

@@ -290,6 +290,7 @@
 					 */
 					if (fork() == 0) {
 						trussinfo->pid = childpid;
+						start_tracing(trussinfo->pid);
 						goto START_TRACE;
 					}
 					break;
@@ -297,6 +298,9 @@
 				funcs->exit_syscall(trussinfo, MAXARGS);
 				break;
 			case S_SIG:
+				sigexit = trussinfo->pr_data;
+				if (trussinfo->flags & NOSIGS)
+					break;
 				if (trussinfo->flags & FOLLOWFORKS)
 					fprintf(trussinfo->outfile, "%5d: ",
 					    trussinfo->pid);
@@ -319,7 +323,6 @@
 				    "SIGNAL %u (%s)\n", trussinfo->pr_data,
 				    signame == NULL ? "?" : signame);
 				free(signame);
-				sigexit = trussinfo->pr_data;
 				break;
 			case S_EXIT:
 				if (trussinfo->flags & FOLLOWFORKS)



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