GitLab will be down for maintenance this Sunday 13th June, from approx 7-11am UTC. This is for a PostgreSQL migration. See the tracker issue for more informations.

Commit 43d2455e authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Drop duplicated function tool_millisleep() and use dbus_sleep_milliseconds() instead.


Reviewed-by: default avatarSimon McVittie <>
parent 6588c657
......@@ -89,7 +89,7 @@ filter (DBusConnection *connection,
if (sleep_ms > 0)
tool_millisleep (sleep_ms);
_dbus_sleep_milliseconds (sleep_ms);
if (!noreply)
......@@ -37,25 +37,6 @@
#include <unistd.h>
/* a hack to avoid having to depend on the static -util version of libdbus;
* it's useful for ancillary programs to be able to use the shared library */
tool_millisleep (unsigned int ms)
#ifdef DBUS_WIN
Sleep (ms);
fd_set nothing;
struct timeval tv;
tv.tv_sec = ms / 1000;
tv.tv_usec = (ms % 1000) * 1000;
FD_ZERO (&nothing);
select (1, &nothing, &nothing, &nothing, &tv);
tool_oom (const char *doing)
......@@ -32,7 +32,6 @@
#define VERBOSE(...) do {} while (0)
void tool_millisleep (unsigned int ms);
void tool_oom (const char *doing) _DBUS_GNUC_NORETURN;
dbus_bool_t tool_write_all (int fd, const void *buf, size_t size);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment