View | Details | Raw Unified | Return to bug 62377
Collapse All | Expand All

(-)strace.c (+17 lines)
Lines 539-544 Link Here
539
				cleanup();
539
				cleanup();
540
				exit(1);
540
				exit(1);
541
			}
541
			}
542
#ifdef FREEBSD
543
			{
544
				int status;
545
				pid_t err;
546
547
				do {
548
					err = waitpid(pid, &status, WUNTRACED);
549
				} while (err == -1 && errno == EINTR);
550
				if (err == -1) {
551
					fprintf(stderr,
552
					        "waitpid() failed: %s\n",
553
						strerror(errno));
554
					cleanup();
555
					exit(1);
556
				}
557
			}
558
#endif
542
#ifdef USE_PROCFS
559
#ifdef USE_PROCFS
543
			if (proc_open(tcp, 0) < 0) {
560
			if (proc_open(tcp, 0) < 0) {
544
				fprintf(stderr, "trouble opening proc file\n");
561
				fprintf(stderr, "trouble opening proc file\n");

Return to bug 62377