summaryrefslogtreecommitdiff
path: root/getopt.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2017-11-18 13:58:07 +0100
committerBert Münnich <ber.t@posteo.de>2018-12-29 19:19:11 +0100
commitda63ba04988e68bca1395eff60cc362ea14e3c34 (patch)
treef5c054411f199faf92ad9347f56319491276204b /getopt.c
parent134ea56bac17a42cf71742807a50f4ca4ac72474 (diff)
Restore tty attributes if interactive child is terminated by signal
Some programs like su(1) do not restore tty attributes like ECHO when they are terminated by receiving SIGINT. Other shells (bash, mksh, zsh) save tty attributes before executing an external command and restore them if the child exited due to the receipt of a signal. rc now does the same if it is interactive.
Diffstat (limited to 'getopt.c')
0 files changed, 0 insertions, 0 deletions