Skip to content
Snippets Groups Projects
Commit 9418d33e authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Added support for select(2) returning 0.

Rev: src/backend.c:1.33
parent 6aa4b73c
Branches
Tags
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
||| See the files COPYING and DISCLAIMER for more information. ||| See the files COPYING and DISCLAIMER for more information.
\*/ \*/
#include "global.h" #include "global.h"
RCSID("$Id: backend.c,v 1.32 1998/05/12 19:46:28 grubba Exp $"); RCSID("$Id: backend.c,v 1.33 1998/06/13 21:16:51 grubba Exp $");
#include "fdlib.h" #include "fdlib.h"
#include "backend.h" #include "backend.h"
#include <errno.h> #include <errno.h>
...@@ -633,8 +633,9 @@ void backend(void) ...@@ -633,8 +633,9 @@ void backend(void)
THREADS_DISALLOW(); THREADS_DISALLOW();
may_need_wakeup=0; may_need_wakeup=0;
if(i>=0) if (!i) {
{ /* Timeout */
} else if (i>0) {
#ifdef DEBUG #ifdef DEBUG
int num_active = i; int num_active = i;
#endif /* DEBUG */ #endif /* DEBUG */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment