Commit 4bc5f808 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

systemctl: before spawning pager cache number of columns

parent 3add4d21
......@@ -11,8 +11,6 @@
* sometimes processes seem to remain when we kill a service
* when launching pager, take number of columns first
* support remote/ssh systemctl/systemadm, and local privileged access
* finish syslog socket stuff
......@@ -5316,6 +5316,10 @@ static void pager_open(void) {
if (!*pager || streq(pager, "cat"))
/* Determine and cache number of columns before we spawn the
* pager so that we get the value from the actual tty */
if (pipe(fd) < 0) {
log_error("Failed to create pager pipe: %m");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment