PERFORCE change 102947 for review
Howard Su
howardsu at FreeBSD.org
Tue Aug 1 16:20:41 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=102947
Change 102947 by howardsu at su_vm on 2006/08/01 16:20:03
remove debug printf
Affected files ...
.. //depot/projects/dtrace/src/usr.bin/truss/setup.c#6 edit
Differences ...
==== //depot/projects/dtrace/src/usr.bin/truss/setup.c#6 (text+ko) ====
@@ -128,13 +128,17 @@
err(1, "failed");
}
}
- if (WIFCONTINUED(waitval)) printf("WIFCONTINUED");
+ if (WIFCONTINUED(waitval)) {
+ info->pr_why = S_NONE;
+ return;
+ }
+
if (WIFEXITED(waitval)) {
info->pr_why = S_EXIT;
return;
}
- if (WIFSIGNALED(waitval)) printf("WIFSIGNALED");
- if (WIFSTOPPED(waitval)) {
+
+ if (WIFSTOPPED(waitval) || WIFSIGNALED(waitval)) {
ptrace(PT_LWPINFO, info->pid, (caddr_t)&lwpinfo, sizeof(lwpinfo));
info->tid = lwpinfo.pl_lwpid;
switch(lwpinfo.pl_event) {
More information about the p4-projects
mailing list