Added timeout to poll function in dbus mainloop
authorIngo Huerner <ingo.huerner@xse.de>
Fri, 6 Jun 2014 11:21:55 +0000 (13:21 +0200)
committerIngo Huerner <ingo.huerner@xse.de>
Fri, 6 Jun 2014 11:21:55 +0000 (13:21 +0200)
src/persistence_client_library_dbus_service.c

index f7a0538..baa1906 100644 (file)
@@ -543,7 +543,7 @@ int mainLoop(DBusObjectPathVTable vtable, DBusObjectPathVTable vtable2,
 
                   while (DBUS_DISPATCH_DATA_REMAINS==dbus_connection_dispatch(conn));
 
-                  while ((-1==(ret=poll(gPollInfo.fds, gPollInfo.nfds, -1)))&&(EINTR==errno));
+                  while ((-1==(ret=poll(gPollInfo.fds, gPollInfo.nfds, 750)))&&(EINTR==errno));
 
                   if (0>ret)
                   {