From: Todd C. Miller Date: Wed, 23 Feb 2005 03:26:50 +0000 (+0000) Subject: Use TCSADRAIN instead of TCSAFLUSH since some OSes have issues with TCSAFLUSH. X-Git-Tag: SUDO_1_7_0~690 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7facbeeed7d091cb3e8a152f689a14d7f7f0c4e9;p=sudo Use TCSADRAIN instead of TCSAFLUSH since some OSes have issues with TCSAFLUSH. --- diff --git a/tgetpass.c b/tgetpass.c index cdd06a98e..41249781e 100644 --- a/tgetpass.c +++ b/tgetpass.c @@ -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