mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 02:24:46 +08:00
2000-09-15 Fernando Nasser <fnasser@cygnus.com>
* ser-unix.c (do_unix_readchar): Prevent infinite read wait to be interrupted after 32K seconds.
This commit is contained in:
parent
0752970ef8
commit
f7c9d7b698
@ -1,3 +1,8 @@
|
||||
2000-09-15 Fernando Nasser <fnasser@cygnus.com>
|
||||
|
||||
* ser-unix.c (do_unix_readchar): Prevent infinite read wait to be
|
||||
interrupted after 32K seconds.
|
||||
|
||||
2000-09-15 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
* language.c (show_case_command, set_case_command): Protoize.
|
||||
|
@ -927,7 +927,7 @@ do_unix_readchar (serial_t scb, int timeout)
|
||||
}
|
||||
|
||||
status = ser_unix_wait_for (scb, delta);
|
||||
timeout -= delta;
|
||||
timeout = (timeout <= 0) ? timeout : (timeout - delta);
|
||||
|
||||
/* If we got a character or an error back from wait_for, then we can
|
||||
break from the loop before the timeout is completed. */
|
||||
|
Loading…
Reference in New Issue
Block a user