aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--svcscan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/svcscan.c b/svcscan.c
index fbd4e90..65a3808 100644
--- a/svcscan.c
+++ b/svcscan.c
@@ -233,8 +233,8 @@ reap_all()
if (r == 0) {
if (m >= 3)
break;
- sleep(1);
- m++;
+ if (sleep(1) == 0)
+ m++;
}
if (r == -1) {