From 2c3363f742eb7ec1caba5a5a12b688fb3f8dd18d Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 3 Jun 2024 12:52:28 -0500 Subject: [PATCH] Use DRAIN instead of FLUSH. --- toys/pending/stty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/pending/stty.c b/toys/pending/stty.c index 217c0c2b..25d2d9b4 100644 --- a/toys/pending/stty.c +++ b/toys/pending/stty.c @@ -406,7 +406,7 @@ void stty_main(void) } } - tcsetattr(TT.fd, TCSAFLUSH, &new); + tcsetattr(TT.fd, TCSADRAIN, &new); xtcgetattr(&old); if (memcmp(&old, &new, sizeof(old))) error_exit("unable to perform all requested operations on %s", TT.F); -- 2.39.2