projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ed0132
)
Break out of the `nanosleep' loop if `loop' is set to non-zero.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Tue, 7 Nov 2006 19:52:29 +0000
(20:52 +0100)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Tue, 7 Nov 2006 19:52:29 +0000
(20:52 +0100)
src/collectd.c
patch
|
blob
|
history
diff --git
a/src/collectd.c
b/src/collectd.c
index
ef2ccc7
..
64da576
100644
(file)
--- a/
src/collectd.c
+++ b/
src/collectd.c
@@
-207,7
+207,7
@@
static int start_client (void)
continue;
}
- while (
nanosleep (&ts_wait, &ts_wait) == -1
)
+ while (
(loop == 0) && (nanosleep (&ts_wait, &ts_wait) == -1)
)
{
if (errno != EINTR)
{