Don't throw exception in ccnLoop, put just log, sleep, and continue
diff --git a/ccnx/ccnx-wrapper.cpp b/ccnx/ccnx-wrapper.cpp
index f5d20c0..697901c 100644
--- a/ccnx/ccnx-wrapper.cpp
+++ b/ccnx/ccnx-wrapper.cpp
@@ -31,6 +31,10 @@
#include <boost/algorithm/string.hpp>
#include <sstream>
+#include "logging.h"
+
+INIT_LOGGER ("Ccnx.Wrapper");
+
typedef boost::error_info<struct tag_errmsg, std::string> errmsg_info_str;
typedef boost::error_info<struct tag_errmsg, int> errmsg_info_int;
@@ -104,9 +108,13 @@
if (!m_running) break;
- if (res < 0)
- BOOST_THROW_EXCEPTION (CcnxOperationException()
- << errmsg_info_str("ccn_run returned error"));
+ if (res < 0) {
+ _LOG_ERROR ("ccn_run returned negative status: " << res);
+ usleep (100000);
+ continue;
+ // BOOST_THROW_EXCEPTION (CcnxOperationException()
+ // << errmsg_info_str("ccn_run returned error"));
+ }
pollfd pfds[1];