-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
port_getn on Solaris 5.11 can return EAGAIN (even though this is not
documented). Patch to handle this and remove two unused variables.
Index: evport.c
===================================================================
- --- evport.c (revision 628)
+++ evport.c (working copy)
@@ -234,10 +234,8 @@
~ grow(struct evport_data *epdp, int factor)
~ {
~ struct fd_info *tmp;
- - struct fd_info *old = epdp->ed_fds;
~ int oldsize = epdp->ed_nevents;
~ int newsize = factor * oldsize;
- - int ii;
~ assert(factor > 1);
~ check_evportop(epdp);
@@ -332,7 +330,7 @@
~ if ((res = port_getn(epdp->ed_port, pevtlist, EVENTS_PER_GETN,
~ (unsigned int *) &nevents, ts_p)) == -1) {
- - if (errno == EINTR) {
+ if (errno == EINTR || errno == EAGAIN) {
~ evsignal_process(base);
~ return (0);
~ } else if (errno == ETIME) {
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFHqZDfkDLqNwOhpPgRAgLbAJ44rLKOXLGE1S9n44wDFdV+ByKOmgCgmiGf
gHuBW/Pmh9jIYHaH6A/rD3M=
=Nopb
-----END PGP SIGNATURE-----
_______________________________________________
Libevent-users mailing list
[email protected]
http://monkeymail.org/mailman/listinfo/libevent-users