This commit changes the code to invoke aeApiDelEvent before modifying the ae->events[fd].mask,
however in ae_evport.c, aeApiDelEvent relies on eventLoop->events[fd].mask to calculate the actual events to be associated with evport.
I'm not an expert on solaris nor evport, but the code seems strange, so I dig into the git history and found that the aeApiDelEvent was invoked AFTER mask is modified, when the first version of ae_evport.c was written.
So I'm wondering, is solaris or evport still supported? If so, is current behavior still valid?
PS: I'm not reporting this as a BUG because I don't have a platform runs
evport, so I cannot confirm.