]> git.ipfire.org Git - thirdparty/systemd.git/commit
pager: set PR_DEATHSIG for pager to SIGINT rather than SIGTERM
authorLennart Poettering <lennart@poettering.net>
Tue, 9 Jun 2020 06:59:33 +0000 (08:59 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 10 Jun 2020 08:31:22 +0000 (10:31 +0200)
commit97033ba455c4c1e359835879eee2e3c690395792
tree095477a2cce88b5ccc99a3ee419ba102db20945e
parentc85b6ff1b29d4180d8d5296dfc598b40c09aebfd
pager: set PR_DEATHSIG for pager to SIGINT rather than SIGTERM

"less" doesn't properly reset its terminal on SIGTERM, it does so only
on SIGINT. Let's thus configure SIGINT instead of SIGTERM.

I think this is something less should fix too, and clean up things
correctly on SIGTERM, too. However, given that we explicitly enable
SIGINT behaviour by passing "K" to $LESS I figure it makes sense if we
also send SIGINT instead of SIGTERM to match it.

Fixes: #16084
src/basic/process-util.c
src/basic/process-util.h
src/shared/pager.c