From: Francois Fleuret Date: Fri, 13 Mar 2009 16:19:29 +0000 (+0100) Subject: *** empty log message *** X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=fa9e318e1e27d44a9522ad5d53dfe24392b7e7ba;p=selector.git *** empty log message *** --- diff --git a/selector.cc b/selector.cc index ae945fd..2418ae9 100644 --- a/selector.cc +++ b/selector.cc @@ -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;