From 7542b63188f7e73588c9abb40e36a910c87bc534 Mon Sep 17 00:00:00 2001 From: Joachim Schmitz Date: Mon, 17 Sep 2012 05:26:31 -0700 Subject: [PATCH] libreplace: Bug 8107, Fix poll replacement to become a msleep replacement Signed-off-by: Jeremy Allison --- lib/replace/poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/replace/poll.c b/lib/replace/poll.c index 95b2f883bf8..27876bb0670 100644 --- a/lib/replace/poll.c +++ b/lib/replace/poll.c @@ -46,7 +46,7 @@ int rep_poll(struct pollfd *fds, nfds_t nfds, int timeout) int rc; nfds_t i; - if (fds == NULL) { + if ((fds == NULL) && (nfds != 0)) { errno = EFAULT; return -1; } -- 2.11.4.GIT