Skip to content

Commit

Permalink
Attempt to open the device in non-blocking mode
Browse files Browse the repository at this point in the history
  • Loading branch information
msantos committed Apr 18, 2011
1 parent bd91116 commit 70b9c67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c_src/procket_cmd.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 70b9c67

Please sign in to comment.