diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2015-11-14 23:56:42 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2015-11-14 23:56:42 +0000 |
commit | 3a40f36a51668b8edf062c8f7c9fce866ff3e547 (patch) | |
tree | ff3bd7f18091b77d79b5280bc9d634ecda5e7ec6 /share | |
parent | 3af3fc94c46d90d9e0b022b5c4b9da0576167849 (diff) |
Fix an issue reported by deraadt@: When hitting Ctrl-Backslash (= SIGQUIT)
in the less(1) spawned by man(1), man(1) died uncleanly, leaving behind
its temp files, and killed less(1) uncleanly as well with SIGPIPE,
leaving the terminal in the wrong state.
Fix this by giving less(1) its own process group and handing it
control of the terminal, but in such a way that Ctrl-z (= SIGSTOP)
still works: In that case, let man(1) stop itself, too, and let it
continue the pager when it continues itself.
Joint work with millert@ who contributed most of the expertise
required, and also most parts of the code.
OK deraadt@ millert@
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions