diff options
-rw-r--r-- | bin/stty/gfmt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/stty/gfmt.c b/bin/stty/gfmt.c index 19baf83..b408792 100644 --- a/bin/stty/gfmt.c +++ b/bin/stty/gfmt.c @@ -133,8 +133,10 @@ gread(i, s) } if (CHK("drainwait")) { (void)sscanf(ep, "%ld", &tmp); - i->timeout = tmp; - i->tset = 1; + if (i->timeout != tmp) { + i->timeout = tmp; + i->tset = 1; + } continue; } for (cp = cchars1; cp->name != NULL; ++cp) |