This ensures that the final NULL sioctl_ondesc() call-back
call is not lost.
-/* $OpenBSD: dev.c,v 1.109 2024/04/22 10:39:51 ratchov Exp $ */
+/* $OpenBSD: dev.c,v 1.110 2024/04/22 10:43:16 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
/* if control is hidden */
c->desc_mask |= s->self;
}
+ if (s->ops)
+ s->ops->sync(s->arg);
}
void
c->refs_mask |= s->self;
/* if control is hidden */
c->desc_mask |= s->self;
+ s->ops->sync(s->arg);
}
}