Skip to content

Commit

Permalink
VT window resize handler used STDIN_FILENO. Pavel Stehule (see issue #…
Browse files Browse the repository at this point in the history
…256) pointed out that it should use STDOUT_FILENO.
  • Loading branch information
Bill-Gray committed Jan 6, 2023
1 parent 3abeedc commit 6925d0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vt/pdcscrn.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ static void sigwinchHandler( int sig)
struct winsize ws;

INTENTIONALLY_UNUSED_PARAMETER( sig);
if (ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) != -1)
if( -1 != ioctl( STDOUT_FILENO, TIOCGWINSZ, &ws))
if( PDC_rows != ws.ws_row || PDC_cols != ws.ws_col)
{
PDC_rows = ws.ws_row;
Expand Down

0 comments on commit 6925d0f

Please sign in to comment.