diff options
author | Phillip Wood <phillip.wood@dunelm.org.uk> | 2022-03-16 18:54:05 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-16 12:24:44 -0700 |
commit | 0f584debc74afefdd24449136ffb2c77859e38c9 (patch) | |
tree | 28720b410f21c5df16aec6163ec1ba1bd5a19d1b /t/t2081-parallel-checkout-collisions.sh | |
parent | terminal: work around macos poll() bug (diff) | |
download | tgif-0f584debc74afefdd24449136ffb2c77859e38c9.tar.xz |
terminal: restore settings on SIGTSTP
If the user suspends git while it is waiting for a keypress reset the
terminal before stopping and restore the settings when git resumes. If
the user tries to resume in the background print an error
message (taking care to use async safe functions) before stopping
again. Ideally we would reprint the prompt for the user when git
resumes but this patch just restarts the read().
The signal handler is established with sigaction() rather than using
sigchain_push() as this allows us to control the signal mask when the
handler is invoked and ensure SA_RESTART is used to restart the
read() when resuming.
Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2081-parallel-checkout-collisions.sh')
0 files changed, 0 insertions, 0 deletions