summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/select.c18
-rw-r--r--lib/util/select.h1
2 files changed, 0 insertions, 19 deletions
diff --git a/lib/util/select.c b/lib/util/select.c
index b9326ef901..63be55cf0c 100644
--- a/lib/util/select.c
+++ b/lib/util/select.c
@@ -35,24 +35,6 @@ static pid_t initialised;
static int select_pipe[2];
static volatile unsigned pipe_written, pipe_read;
-/*******************************************************************
- Call this from all Samba signal handlers if you want to avoid a
- nasty signal race condition.
-********************************************************************/
-
-void sys_select_signal(char c)
-{
- int saved_errno = errno;
-
- if (!initialised) return;
-
- if (pipe_written > pipe_read+256) return;
-
- if (write(select_pipe[1], &c, 1) == 1) pipe_written++;
-
- errno = saved_errno;
-}
-
/*
* sys_poll expects pollfd's to be a talloc'ed array.
*
diff --git a/lib/util/select.h b/lib/util/select.h
index 36efa6e83b..bfc78a99d2 100644
--- a/lib/util/select.h
+++ b/lib/util/select.h
@@ -24,7 +24,6 @@
/* The following definitions come from lib/util/select.c */
-void sys_select_signal(char c);
int sys_poll(struct pollfd *fds, int num_fds, int timeout);
int sys_poll_intr(struct pollfd *fds, int num_fds, int timeout);