From 367c567c5f35db202474c8d3f730484538e1fb97 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 9 Feb 2012 13:16:55 +1100 Subject: 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 --- source3/nmbd/nmbd_packets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/nmbd') 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; -- cgit