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)
char path[strlen (type) + 4];
snprintf (path, sizeof (path), "%s%u", type, d->device);
fd = vlc_openat (d->dir, path, flags);
if (fd != -1)
fcntl (fd, F_SETFL, fcntl (fd, F_GETFL) | O_NONBLOCK);
return fd;
return vlc_openat (d->dir, path, flags | O_NONBLOCK);
Supports Markdown
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