Thanks for the patch. I fixed trunk. Could you please verify that this is working for you in trunk? I can back port to the 1.4 branch then.
Niels. On Feb 6, 2008 2:50 AM, W.C.A. Wijngaards <[EMAIL PROTECTED]> wrote: > -----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 > Libevent-users@monkey.org > http://monkeymail.org/mailman/listinfo/libevent-users > > _______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkeymail.org/mailman/listinfo/libevent-users