[kdbus] More detailed description for ENOBUFS errno
authorLukasz Skalski <l.skalski@samsung.com>
Tue, 5 May 2015 11:48:01 +0000 (11:48 +0000)
committerMaciej Wereski <m.wereski@partner.samsung.com>
Fri, 10 Jul 2015 09:47:45 +0000 (11:47 +0200)
gio/gkdbus.c

index ea533e6..0bb5766 100644 (file)
@@ -2662,6 +2662,11 @@ _g_kdbus_send (GKDBusWorker        *kdbus,
           g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_LIMITS_EXCEEDED,
                        "The memory pool of the receiver is full");
         }
+      else if (errno == ENOBUFS)
+        {
+          g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_LIMITS_EXCEEDED,
+                       "Too many pending messages on the receiver side");
+        }
       else
         {
           g_error ("WTF? %d\n", errno);