diff options
author | Christian Grothoff <christian@grothoff.org> | 2007-08-15 08:42:54 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2007-08-15 08:42:54 +0000 |
commit | d2ea952b603c504aa54aa8bd390d8b4f74f65502 (patch) | |
tree | 771f132193ec00ac0186485c06dee559b93ee527 | |
parent | d8211f1b223bbfee1fbe42106efd7b8157308408 (diff) | |
download | libmicrohttpd-d2ea952b603c504aa54aa8bd390d8b4f74f65502.tar.gz libmicrohttpd-d2ea952b603c504aa54aa8bd390d8b4f74f65502.zip |
fix
-rw-r--r-- | src/daemon/daemon.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index ac326b83..607f544b 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c | |||
@@ -438,8 +438,9 @@ MHD_select (struct MHD_Daemon *daemon, int may_block) | |||
438 | { | 438 | { |
439 | /* accept only, have one thread per connection */ | 439 | /* accept only, have one thread per connection */ |
440 | max = daemon->socket_fd; | 440 | max = daemon->socket_fd; |
441 | if (max != -1) | 441 | if (max == -1) |
442 | FD_SET (max, &rs); | 442 | return MHD_NO; |
443 | FD_SET (max, &rs); | ||
443 | } | 444 | } |
444 | if (may_block == MHD_NO) { | 445 | if (may_block == MHD_NO) { |
445 | timeout.tv_usec = 0; | 446 | timeout.tv_usec = 0; |