From fe815ce580d3c455292e1acda406ddb4d371120a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 21 Sep 2009 18:47:23 +0400 Subject: [PATCH] * Export definitions --- src/util.c | 2 +- src/util.h | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/util.c b/src/util.c index 2e18c441a..26e9dbd32 100644 --- a/src/util.c +++ b/src/util.c @@ -81,7 +81,7 @@ make_socket_blocking (int fd) return 0; } -static int +int poll_sync_socket (int fd, int timeout, short events) { int r; diff --git a/src/util.h b/src/util.h index 7f30b5721..2cd220ec7 100644 --- a/src/util.h +++ b/src/util.h @@ -20,7 +20,10 @@ int make_unix_socket (const char *, struct sockaddr_un *, gboolean is_server); /* Write pid to file */ int write_pid (struct rspamd_main *); /* Make specified socket non-blocking */ -int event_make_socket_nonblocking(int); +int make_socket_nonblocking (int); +int make_socket_blocking (int); +/* Poll sync socket for specified events */ +int poll_sync_socket (int fd, int timeout, short events); /* Init signals */ void init_signals (struct sigaction *, sig_t); /* Send specified signal to each worker */ -- 2.39.5