projects
/
svn42.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e399e45
)
small fixes @ ttydart
author
Christian Pointner
<equinox@realraum.at>
Tue, 12 Jul 2011 23:15:41 +0000
(23:15 +0000)
committer
Christian Pointner
<equinox@realraum.at>
Tue, 12 Jul 2011 23:15:41 +0000
(23:15 +0000)
dart/ttyread.c
patch
|
blob
|
history
diff --git
a/dart/ttyread.c
b/dart/ttyread.c
index
65a6248
..
beb8856
100644
(file)
--- a/
dart/ttyread.c
+++ b/
dart/ttyread.c
@@
-51,7
+51,6
@@
int setup_tty(int fd)
}
tmio.c_lflag &= ~ECHO;
- tmio.c_lflag &= ~ISIG;
tmio.c_lflag |= CLOCAL;
tmio.c_iflag &= ~ICRNL;
@@
-109,7
+108,7
@@
int main(int argc, char* argv[])
char buf[100];
for(;;) {
ssize_t r = read(fd, buf, sizeof(buf));
- if(r < 0 ) {
+ if(r <= 0) {
perror("read()");
return r;
}