Blame SOURCES/strace-rh1214041.patch

a45b5b
diff -Nrup a/strace.c b/strace.c
a45b5b
--- a/strace.c	2015-04-22 12:48:38.000000000 -0600
a45b5b
+++ b/strace.c	2015-04-22 14:43:41.639193569 -0600
a45b5b
@@ -1928,7 +1928,7 @@ collect_stopped_tcbs(void)
a45b5b
 	nextp = &found_tcps;
a45b5b
 	found_tcps = NULL;
a45b5b
 
a45b5b
-	while (nprocs != 0) {
a45b5b
+	while (1) {
a45b5b
 		int wait_errno;
a45b5b
 		int status;
a45b5b
 		unsigned event;
a45b5b
@@ -2398,7 +2398,7 @@ trace(void)
a45b5b
 	int rc;
a45b5b
 	struct tcb *tcbs;
a45b5b
 
a45b5b
-	while (nprocs != 0) {
a45b5b
+	while (1) {
a45b5b
 		if (interrupted)
a45b5b
 			return 0;
a45b5b
 		tcbs = collect_stopped_tcbs();