Skip to content

Commit 0cfd33f

Browse files
committed
Remove the suppression of EVFILT_WRITE for KNFL_FILE
This will likely work just fine. It's not clear why it was prohibited.
1 parent 6cbadf6 commit 0cfd33f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/linux/write.c

-5
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@ evfilt_write_knote_create(struct filter *filt, struct knote *kn)
7373
if (linux_get_descriptor_type(kn) < 0)
7474
return (-1);
7575

76-
if (kn->kn_flags & KNFL_FILE) {
77-
errno = EBADF;
78-
return (-1);
79-
}
80-
8176
/*
8277
* Convert the kevent into an epoll_event
8378
*/

0 commit comments

Comments
 (0)