On Wed, 2008-03-12 at 23:28 -0700, Sophie Hu wrote: > after I return from port_getn(), if I reassoociate the sock using > port_associate() immediately after i return from port_getn(), then > next time the event which is available last time will be available > again.
That's expected -- if you re-associate immediately after calling port_getn and before calling read() or accept() or whatever, the event re-fires immediately. You need to re-associate after you consume something from the object. > However, if I re-associate all interested ports in front of > port_getn(), the strange thing does not happen. you don't want to re-associate all interested ports -- just the ones you're still interested in that fired and haven't been re-associated. _______________________________________________ perf-discuss mailing list perf-discuss@opensolaris.org