fix kqueue for oneshot