Fix poll_oneoff's handling of non-regular files.
#6258
Merged
poll_oneoff's handling of non-regular files.
#6258