Use TCSADRAIN instead of TCSAFLUSH since some OSes have issues with TCSAFLUSH.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 23 Feb 2005 03:26:50 +0000 (03:26 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 23 Feb 2005 03:26:50 +0000 (03:26 +0000)
tgetpass.c

index cdd06a98e13aaaa48354f0167943866d5d399555..41249781e938f08166444b653b98daf9cb7f0a51 100644 (file)
@@ -97,7 +97,7 @@ __unused static const char rcsid[] = "$Sudo$";
 # define TERM                  termios
 # define tflags                        c_lflag
 # define term_getattr(f, t)    tcgetattr(f, t)
-# define term_setattr(f, t)    tcsetattr(f, TCSAFLUSH|TCSASOFT, t)
+# define term_setattr(f, t)    tcsetattr(f, TCSADRAIN|TCSASOFT, t)
 #else
 # ifdef HAVE_TERMIO_H
 # define TERM                  termio