Permalink
Browse files

Attempt to open the device in non-blocking mode

  • Loading branch information...
1 parent bd91116 commit 70b9c671727c9b2bb464320abed1e897e66808bf @msantos committed Apr 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 c_src/procket_cmd.c
View
@@ -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 */

0 comments on commit 70b9c67

Please sign in to comment.