mirror of
https://github.com/open-simh/simh.git
synced 2026-05-01 14:06:14 +00:00
SCP: Fix potential infinite loop when EOF is encountered on stdin for hosts using BSDTTY tty I/O.
This commit is contained in:
@@ -2751,7 +2751,7 @@ return sim_ttcmd ();
|
|||||||
|
|
||||||
static t_bool sim_os_ttisatty (void)
|
static t_bool sim_os_ttisatty (void)
|
||||||
{
|
{
|
||||||
return isatty (0);
|
return isatty (fileno (stdin));
|
||||||
}
|
}
|
||||||
|
|
||||||
static t_stat sim_os_poll_kbd (void)
|
static t_stat sim_os_poll_kbd (void)
|
||||||
|
|||||||
Reference in New Issue
Block a user