summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/main.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2017-02-10 23:40:34 +0100
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2017-02-10 23:45:24 +0100
commitf87a2bc5199104d87ccc48dcc2b0e18d345a9bb4 (patch)
treee883c1bb2d1e2769bdadf937def235756af95c3b /src/ipcpd/normal/main.c
parenta6309410ffb6b4531044c3b52cb6a79cfdcde231 (diff)
downloadouroboros-f87a2bc5199104d87ccc48dcc2b0e18d345a9bb4.tar.gz
ouroboros-f87a2bc5199104d87ccc48dcc2b0e18d345a9bb4.zip
ipcpd: Silent shutdown of normal
The acceptor will not log disconnects with IRMd. Unexpected disconnects will be reported and handled by management components.
Diffstat (limited to 'src/ipcpd/normal/main.c')
-rw-r--r--src/ipcpd/normal/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ipcpd/normal/main.c b/src/ipcpd/normal/main.c
index 81912614..11ec0938 100644
--- a/src/ipcpd/normal/main.c
+++ b/src/ipcpd/normal/main.c
@@ -30,6 +30,7 @@
#include <ouroboros/irm.h>
#include <ouroboros/rib.h>
#include <ouroboros/irm_config.h>
+#include <ouroboros/errno.h>
#include "addr_auth.h"
#include "ae.h"
@@ -45,7 +46,6 @@
#include <stdlib.h>
#include <pthread.h>
#include <string.h>
-#include <errno.h>
#include <assert.h>
#include <inttypes.h>
@@ -108,7 +108,8 @@ static void * flow_acceptor(void * o)
fd = flow_accept(&ae_name, &qs);
if (fd < 0) {
- log_warn("Flow accept failed.");
+ if (fd != -EIRMD)
+ log_warn("Flow accept failed: %d", fd);
continue;
}