]> git.pond.sub.org Git - empserver/blobdiff - src/lib/empthread/lwp.c
Reimplement max_idle without a separate thread
[empserver] / src / lib / empthread / lwp.c
index 190cc11cc45a640db6fcfb4fa7041aeea998d565..b55f29bdc5a96cd15f335cca2fc3edb4cf7e5da4 100644 (file)
@@ -104,10 +104,10 @@ empth_terminate(empth_t *a)
     lwpTerminate(a);
 }
 
-void
-empth_select(int fd, int flags)
+int
+empth_select(int fd, int flags, struct timeval *timeout)
 {
-    lwpSleepFd(fd, flags);
+    return lwpSleepFd(fd, flags, timeout);
 }
 
 void