Skip to content

Commit

Permalink
Merge pull request git-for-windows#47 from rimrul/backport-less-fix
Browse files Browse the repository at this point in the history
Backport fix for hangup of less on quit after the window is resized.
  • Loading branch information
dscho authored Feb 6, 2023
2 parents ebcc274 + 4d62197 commit 8a2855c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions winsup/cygwin/fhandler_console.cc
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,11 @@ fhandler_console::send_winch_maybe ()
con.scroll_region.Bottom = -1;
if (wincap.has_con_24bit_colors () && !con_is_legacy)
fix_tab_position (get_output_handle ());
/* longjmp() may be called in the signal handler like less,
so release input_mutex temporarily before kill_pgrp(). */
release_input_mutex ();
get_ttyp ()->kill_pgrp (SIGWINCH);
acquire_input_mutex (mutex_timeout);
return true;
}
return false;
Expand Down

0 comments on commit 8a2855c

Please sign in to comment.