eio: fix kevent monitor to not SIGBUS.

This commit is contained in:
Al Poole 2016-09-07 16:41:59 -07:00 committed by Cedric BAIL
parent e6a810efa7
commit a19f730137
2 changed files with 1 additions and 6 deletions

View File

@ -675,3 +675,4 @@ Vitaliy Venzak <v.venzak@samsung.com>
perepelits.m <perepelits.m@samsung.com>
rustyBSD <rustyBSD@gmx.fr>
Haifeng Deng <haifeng.deng@samsung.com>
Al Poole <netstar@gmail.com>

View File

@ -155,12 +155,6 @@ void eio_monitor_backend_add(Eio_Monitor *monitor)
res = stat(monitor->path, &st);
if (res) goto error;
if (S_ISDIR(st.st_mode)) // let poller handle directories
{
eio_monitor_fallback_add(monitor);
goto error;
}
fd = open(monitor->path, O_RDONLY);
if (fd < 0) goto error;