summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2012-04-29 16:40:10 +0200
committerSebastian Reichel <sre@ring0.de>2012-04-29 16:40:10 +0200
commita4dfe84547a12a41dee8a35ceaee9b6807140b1f (patch)
tree28e41fef9045fd513784c849f8de617a66fffc1c
parentc5a0937de7cf48cf62d2cfac50a48b854017a3d6 (diff)
downloadserial-barcode-scanner-a4dfe84547a12a41dee8a35ceaee9b6807140b1f.tar.bz2
read blocking
-rw-r--r--serial.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/serial.vala b/serial.vala
index 480d73c..f6901f0 100644
--- a/serial.vala
+++ b/serial.vala
@@ -8,7 +8,7 @@ public class Serial {
public Serial(string device, int rate, int bits, int stopbits) {
Posix.speed_t baudrate = Posix.B9600;
- fd = Posix.open(device, Posix.O_RDONLY | Posix.O_NONBLOCK);
+ fd = Posix.open(device, Posix.O_RDONLY /*| Posix.O_NONBLOCK*/);
if(fd < 0) {
fd = -1;