resource-asm: better message queue error handling.
authorIsmo Puustinen <ismo.puustinen@intel.com>
Thu, 29 Nov 2012 13:48:16 +0000 (15:48 +0200)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 8 Jan 2015 16:37:09 +0000 (18:37 +0200)
src/plugins/resource-asm/asm-bridge.c

index 73e0f87..0b22dc4 100644 (file)
@@ -84,11 +84,8 @@ static void *wait_queue (void *arg) {
         if (ret < 0) {
             /* FIXME: proper error handling */
             mrp_log_error("error receiving a message: '%s'!", strerror(errno));
-            if (errno == E2BIG) {
-
-                /* remove message from queue */
-                msgrcv(asm_rcv_msgid, &msg, sizeof(msg.data), 0, MSG_NOERROR);
-            }
+            /* remove message from queue */
+            msgrcv(asm_rcv_msgid, &msg, sizeof(msg.data), 0, MSG_NOERROR);
             continue;
         }