mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
systemctl: before spawning pager cache number of columns
This commit is contained in:
parent
3add4d215b
commit
4bc5f808e4
2
TODO
2
TODO
@ -11,8 +11,6 @@
|
|||||||
* sometimes processes seem to remain when we kill a service
|
* sometimes processes seem to remain when we kill a service
|
||||||
http://lists.fedoraproject.org/pipermail/devel/2011-January/147559.html
|
http://lists.fedoraproject.org/pipermail/devel/2011-January/147559.html
|
||||||
|
|
||||||
* when launching pager, take number of columns first
|
|
||||||
|
|
||||||
* support remote/ssh systemctl/systemadm, and local privileged access
|
* support remote/ssh systemctl/systemadm, and local privileged access
|
||||||
|
|
||||||
* finish syslog socket stuff
|
* finish syslog socket stuff
|
||||||
|
@ -5316,6 +5316,10 @@ static void pager_open(void) {
|
|||||||
if (!*pager || streq(pager, "cat"))
|
if (!*pager || streq(pager, "cat"))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
/* Determine and cache number of columns before we spawn the
|
||||||
|
* pager so that we get the value from the actual tty */
|
||||||
|
columns();
|
||||||
|
|
||||||
if (pipe(fd) < 0) {
|
if (pipe(fd) < 0) {
|
||||||
log_error("Failed to create pager pipe: %m");
|
log_error("Failed to create pager pipe: %m");
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user