Commit 3d549e2b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

DTV: open device nodes in non-blocking mode

parent 67ba9eb5
...@@ -181,10 +181,7 @@ static int dvb_open_node (dvb_device_t *d, const char *type, int flags) ...@@ -181,10 +181,7 @@ static int dvb_open_node (dvb_device_t *d, const char *type, int flags)
char path[strlen (type) + 4]; char path[strlen (type) + 4];
snprintf (path, sizeof (path), "%s%u", type, d->device); snprintf (path, sizeof (path), "%s%u", type, d->device);
fd = vlc_openat (d->dir, path, flags); return vlc_openat (d->dir, path, flags | O_NONBLOCK);
if (fd != -1)
fcntl (fd, F_SETFL, fcntl (fd, F_GETFL) | O_NONBLOCK);
return fd;
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment