summaryrefslogtreecommitdiff
path: root/src/lib/dev.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/lib/dev.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/lib/dev.c')
-rw-r--r--src/lib/dev.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c
index 38f7cddf..4d85a5d9 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -402,6 +402,11 @@ int flow_accept(char ** ae_name,
if (recv_msg == NULL)
return -EIRMD;
+ if (recv_msg->has_result) {
+ irm_msg__free_unpacked(recv_msg, NULL);
+ return -EIRMD;
+ }
+
if (!recv_msg->has_api || !recv_msg->has_port_id) {
irm_msg__free_unpacked(recv_msg, NULL);
return -1;