summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-02-09 13:02:14 +1100
committerJeremy Allison <jra@samba.org>2012-02-16 15:49:09 -0800
commitab80995580f092811d6380caa9e71e4c5fda06f4 (patch)
treefe61c91b8d7fd09d5183b555b0db9809a0f45f28
parent91c325bb706c5a7df32710dff3b781fca13bbc54 (diff)
downloadsamba-ab80995580f092811d6380caa9e71e4c5fda06f4.tar.gz
samba-ab80995580f092811d6380caa9e71e4c5fda06f4.tar.bz2
samba-ab80995580f092811d6380caa9e71e4c5fda06f4.zip
lib/util: Remove unused sys_select_signal()
Now sys_poll needs to be cleaned up not to refer to the pipe that is now not used. Andrew Bartlett Signed-off-by: Jeremy Allison <jra@samba.org>
-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);