dispatch: lessen deselect() constraints
Allow callers to pass deselected events to deselect(). We still
disallow passing -1 (or anything that was never enabled on the FD), but
we now explicitly allow repeated deselection.
@@ -80,7 +80,7 @@ void dispatch_file_select(DispatchFile *file, uint32_t mask) {
* dispatch_file_deselect() - XXX
*/
void dispatch_file_deselect(DispatchFile *file, uint32_t mask) {
- assert(!(mask & ~file->user_mask));
+ assert(!(mask & ~file->kernel_mask));
file->user_mask &= ~mask;
if (!(file->events & file->user_mask))
