Date: Tue, 1 Aug 2006 16:20:40 GMT From: Howard Su <howardsu@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 102947 for review Message-ID: <200608011620.k71GKej2006240@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=102947 Change 102947 by howardsu@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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608011620.k71GKej2006240>