Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Attempt to open the device in non-blocking mode

  • Loading branch information...
commit 70b9c671727c9b2bb464320abed1e897e66808bf 1 parent bd91116
@msantos authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  c_src/procket_cmd.c
View
2  c_src/procket_cmd.c
@@ -268,7 +268,7 @@ procket_open_char_dev(char *dev)
struct stat buf = {0};
int err = 0;
- if ( (fd = open(dev, O_RDWR)) < 0)
+ if ( (fd = open(dev, O_RDWR|O_NONBLOCK)) < 0)
return -1;
/* Test the file is a character device */
Please sign in to comment.
Something went wrong with that request. Please try again.