mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-17 11:00:59 -05:00
Remove FLAG_STDERR_TTY.
It really had no need to be a global process flag at all: it's used to signal to uxcons.c that stderr_tty_init() ought to check whether stderr is a tty (in order to save its termios across interactive prompts and so forth). But the only _caller_ of stderr_tty_init is Unix Plink, which always sets that flag! So we already have a perfectly good system for signalling to uxcons.c that you'd like stderr_tty_init to do something: _whether you call it or not_.
This commit is contained in:
@ -26,7 +26,7 @@ static bool stderr_is_a_tty;
|
||||
void stderr_tty_init()
|
||||
{
|
||||
/* Ensure that if stderr is a tty, we can get it back to a sane state. */
|
||||
if ((flags & FLAG_STDERR_TTY) && isatty(STDERR_FILENO)) {
|
||||
if (isatty(STDERR_FILENO)) {
|
||||
stderr_is_a_tty = true;
|
||||
tcgetattr(STDERR_FILENO, &orig_termios_stderr);
|
||||
}
|
||||
|
Reference in New Issue
Block a user