static BusContext *context;
+#ifdef DBUS_UNIX
+
static int reload_pipe[2];
#define RELOAD_READ_END 0
#define RELOAD_WRITE_END 1
ACTION_QUIT = 'q'
} SignalAction;
-#ifdef DBUS_UNIX
static void
signal_handler (int sig)
{
}
}
+#ifdef DBUS_UNIX
static dbus_bool_t
handle_reload_watch (DBusWatch *watch,
unsigned int flags,
_dbus_close_socket (reload_pipe[RELOAD_WRITE_END], NULL);
reload_pipe[RELOAD_WRITE_END] = -1;
}
+#endif /* DBUS_UNIX */
int
main (int argc, char **argv)
* print_pid_pipe
*/
+#ifdef DBUS_UNIX
setup_reload_pipe (bus_context_get_loop (context));
-#ifdef DBUS_UNIX
/* POSIX signals are Unix-specific, and _dbus_set_signal_handler is
* unimplemented (and probably unimplementable) on Windows, so there's
* no point in trying to make the handler portable to non-Unix. */