From 70b9c671727c9b2bb464320abed1e897e66808bf Mon Sep 17 00:00:00 2001 From: Michael Santos Date: Mon, 18 Apr 2011 11:10:33 -0400 Subject: [PATCH] Attempt to open the device in non-blocking mode --- c_src/procket_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c_src/procket_cmd.c b/c_src/procket_cmd.c index 3887d39..bcf73a3 100644 --- a/c_src/procket_cmd.c +++ b/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 */