kqueue: Fix typo in filt_userattach function: kn_fflags vs. kn_sfflags. master
authorImre Vadász <imre@vdsz.com>
Sat, 19 Aug 2017 17:03:32 +0000 (19:03 +0200)
committerImre Vadász <imre@vdsz.com>
Sat, 19 Aug 2017 21:12:47 +0000 (23:12 +0200)
commit6b38d89f74cceb760ddb8e7e48228cf159152062
tree782928f2a45dce686fe1a798f67dfac326833c60
parent59eb00662b48f700a961ebe4a6fb572d8e4225f0
kqueue: Fix typo in filt_userattach function: kn_fflags vs. kn_sfflags.

* This typo meant that adding an EVFILT_USER event with NOTE_TRIGGER already
  set, would fail to trigger the user event.

* So far I didn't find any EVFILT_USER usages in opensource code, where
  the NOTE_TRIGGER flag is set when adding the EVFILT_USER event, so this
  fix seems to be a cornercase in practice.
sys/kern/kern_event.c