index
:
svcmon
master
Reimplementation of parts of daemontools for FreeBSD with kqueue and subreapers
Marius Halden
about
summary
refs
log
tree
commit
diff
stats
log msg
author
committer
range
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
-rw-r--r--
svcscan.c
4
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) {