[systemd-commits] src/shared
Lennart Poettering
lennart at kemper.freedesktop.org
Fri Mar 1 04:52:19 PST 2013
src/shared/pager.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 82910f1358c1d15f4e432e6d1f42efdeaf1eddb1
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Wed Feb 27 16:26:59 2013 +0100
pager: add K to less environment
Using less as a pager sometimes breaks terminal when output
is interrupted by ctrl-c.
Reproducer: run 'sudo journalctl' ctrl-c.
Thanks mbriza at redhat.com for the solution.
diff --git a/src/shared/pager.c b/src/shared/pager.c
index 488a12c..5165d2b 100644
--- a/src/shared/pager.c
+++ b/src/shared/pager.c
@@ -85,7 +85,7 @@ int pager_open(void) {
dup2(fd[0], STDIN_FILENO);
close_pipe(fd);
- setenv("LESS", "FRSX", 0);
+ setenv("LESS", "FRSXK", 0);
/* Make sure the pager goes away when the parent dies */
if (prctl(PR_SET_PDEATHSIG, SIGTERM) < 0)
More information about the systemd-commits
mailing list