*** empty log message ***
authorFrancois Fleuret <francois@fleuret.org>
Fri, 13 Mar 2009 16:19:29 +0000 (17:19 +0100)
committerFrancois Fleuret <francois@fleuret.org>
Fri, 13 Mar 2009 16:19:29 +0000 (17:19 +0100)
selector.cc

index ae945fd..2418ae9 100644 (file)
@@ -60,7 +60,7 @@ int inverse_order = 0;
 
 void inject_into_tty_buffer(char *line) {
   char *tty = ttyname(STDIN_FILENO);
-  int fd = open(tty, O_WRONLY);
+  int fd = open(tty, O_RDWR);
 
   struct termios oldtio, newtio;