From: Christian Pointner Date: Tue, 12 Jul 2011 23:49:19 +0000 (+0000) Subject: some cleanups still no working X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=01cf6e586417cb534458e7ba337279d5ab7e6e72;p=svn42.git some cleanups still no working --- diff --git a/dart/ttyread.c b/dart/ttyread.c index aad4e7a..65f0203 100644 --- 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);