summaryrefslogtreecommitdiff
path: root/source3/nmbd
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-02-09 13:16:55 +1100
committerJeremy Allison <jra@samba.org>2012-02-16 15:49:21 -0800
commit367c567c5f35db202474c8d3f730484538e1fb97 (patch)
tree6d4a05b6e2f2923fec8564d360eb7085a831d128 /source3/nmbd
parentab80995580f092811d6380caa9e71e4c5fda06f4 (diff)
downloadsamba-367c567c5f35db202474c8d3f730484538e1fb97.tar.gz
samba-367c567c5f35db202474c8d3f730484538e1fb97.tar.bz2
samba-367c567c5f35db202474c8d3f730484538e1fb97.zip
lib/util: Remove sys_poll as it is no longer needed
sys_poll() is only needed if the signal pipe is set up and used, but as no signal handler ever writes to the pipe, this can all be removed. signal based events are now handled via tevent. Andrew Bartlett Signed-off-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/nmbd')
-rw-r--r--source3/nmbd/nmbd_packets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd_packets.c b/source3/nmbd/nmbd_packets.c
index edac6f6b9f..81e2f7f673 100644
--- a/source3/nmbd/nmbd_packets.c
+++ b/source3/nmbd/nmbd_packets.c
@@ -1935,7 +1935,7 @@ bool listen_for_packets(struct messaging_context *msg, bool run_election)
event_add_to_poll_args(nmbd_event_context(), NULL,
&fds, &num_sockets, &timeout);
- pollrtn = sys_poll(fds, num_sockets, timeout);
+ pollrtn = poll(fds, num_sockets, timeout);
if (run_events_poll(nmbd_event_context(), pollrtn, fds, num_sockets)) {
return False;