$OpenBSD: patch-dbus_dbus-sysdeps-unix_c,v 1.18 2014/09/17 05:49:15 ajacoutot Exp $

From pkgsrc:
_dbus_poll: set the timeout value argument to poll to -1 whenever it is
less than -1 to avoid an infinite EINVAL loop.

--- dbus/dbus-sysdeps-unix.c.orig	Mon Sep 15 13:31:12 2014
+++ dbus/dbus-sysdeps-unix.c	Wed Sep 17 07:40:27 2014
@@ -2592,6 +2592,10 @@ _dbus_poll (DBusPollFD *fds,
       _DBUS_STRUCT_OFFSET (DBusPollFD, revents) ==
       _DBUS_STRUCT_OFFSET (struct pollfd, revents))
     {
+      if (timeout_milliseconds < -1) {
+        _dbus_warn("_dbus_poll: timeout = %d (fixed)\n", timeout_milliseconds);
+        timeout_milliseconds = -1;
+      }
       return poll ((struct pollfd*) fds,
                    n_fds,
                    timeout_milliseconds);
