stream_file: don't use poll() on directories
POSIX leaves poll() behavior on directories unspecified. While on Linux, it seems to behave the same way as regular files (always return immediately), this is not guaranteed. At least with OSX 10.12, it seems to wait, which essentially means that opening directories will "hang". Fixes #3530 and #3649.
W
wm4 committed
a049a3240e7e09ac0640a00c8845cd5b97cd5aff
Parent: 0af8811