select() -> poll(). Bug 2831
[exim.git] / src / src / functions.h
index 3dd890a00fd1feefa27cbb2cc257456737315f71..0cf80dfbb94ebf9c450d8d28f27efb75cbad7c41 100644 (file)
@@ -1255,6 +1255,13 @@ child_open(uschar **argv, uschar **envp, int newumask, int *infdptr,
   outfdptr, make_leader, purpose);
 }
 
+static inline int
+poll_one_fd(int fd, short pollbits, int tmo_millisec)
+{
+struct pollfd p = {.fd = fd, .events = pollbits};
+return poll(&p, 1, tmo_millisec);
+}
+
 # endif        /* !COMPILE_UTILITY */
 
 /******************************************************************************/