summaryrefslogtreecommitdiff
path: root/heartbeatclient.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2009-12-06 20:41:05 (GMT)
committerChristian Pointner <equinox@helsinki.at>2009-12-06 20:41:05 (GMT)
commit0e13f8198ac1edc6f9b3a62492425cbdfd8669e4 (patch)
tree72b0f072a3f35bf0f517645c36692a10842f5b6d /heartbeatclient.c
parent9d2bf892485205f92367aaec61e6ea9c7fb35c69 (diff)
added reconnect code to serialclient
Diffstat (limited to 'heartbeatclient.c')
-rw-r--r--heartbeatclient.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/heartbeatclient.c b/heartbeatclient.c
index f02365e..26e198e 100644
--- a/heartbeatclient.c
+++ b/heartbeatclient.c
@@ -141,13 +141,12 @@ int main_loop(int serial_fd, int cmd_fd, options_t* opt)
time++;
if(time >= opt->timeout_) {
log_printf(WARNING, "timeout reached");
+ // call handler for timeout
time = 0;
}
continue;
}
- log_printf(WARNING, "select has data");
-
if(FD_ISSET(sig_fd, &tmpfds))
if(signal_handle())
return_value = 1;