[prev in list] [next in list] [prev in thread] [next in thread] 

List:       thttpd
Subject:    [THTTPD] Little patch for fdwatch
From:       Alvaro Lopez Ortega <alvaro () alobbs ! com>
Date:       2003-08-02 19:57:48
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi thttpd folks, 

	There's a little bug in fdwatch.c: poll_check_fd() function.  It checks twice 
for POLLERR. 

	A patch goes attached to this mail. :-)
	
- -- 
Greetings, alo.
http://www.alobbs.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/LBe8VRSCNxlNnu0RAiAqAJsFWWQodyl0TFdg9/K6OkqMlnHLGgCgvdP7
dBjhpUTaJ75r5QgZqpuDvd4=
=1b11
-----END PGP SIGNATURE-----

["thttpd-fdwatch_pollerr.diff" (text/x-diff)]

--- fdwatch.c_old	2003-08-02 21:14:19.000000000 +0200
+++ fdwatch.c	2003-08-02 21:16:08.000000000 +0200
@@ -511,8 +511,8 @@
 	return 0;
     switch ( fd_rw[fd] )
 	{
-	case FDW_READ: return pollfds[fdidx].revents & ( POLLIN | POLLERR | POLLHUP | POLLNVAL );
-	case FDW_WRITE: return pollfds[fdidx].revents & ( POLLOUT | POLLERR | POLLHUP | POLLNVAL );
+	case FDW_READ: return pollfds[fdidx].revents & ( POLLIN | POLLHUP | POLLNVAL );
+	case FDW_WRITE: return pollfds[fdidx].revents & ( POLLOUT | POLLHUP | POLLNVAL );
 	default: return 0;
 	}
     }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic