projects
/
svn42.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed56aa9
)
some cleanups still no working
author
Christian Pointner
<equinox@realraum.at>
Tue, 12 Jul 2011 23:49:19 +0000
(23:49 +0000)
committer
Christian Pointner
<equinox@realraum.at>
Tue, 12 Jul 2011 23:49:19 +0000
(23:49 +0000)
dart/ttyread.c
patch
|
blob
|
history
diff --git
a/dart/ttyread.c
b/dart/ttyread.c
index
aad4e7a
..
65f0203
100644
(file)
--- a/
dart/ttyread.c
+++ b/
dart/ttyread.c
@@
-97,7
+97,7
@@
int main(int argc, char* argv[])
return 1;
}
- int fd = open(argv[1], O_RDONLY);
+ int fd = open(argv[1], O_RDONLY | O_NONBLOCK | O_NOCTTY);
if(fd < 0) {
perror("open()");
return 2;
@@
-106,7
+106,6
@@
int main(int argc, char* argv[])
if(setup_tty(fd)) return 3;
fd_set rfds, efds;
-
char buf[100];
for(;;) {
FD_ZERO(&rfds);