diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-09-22 12:50:27 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-09-24 08:38:03 -0400 |
commit | 585314e84c1a2e8941309874088963985e063213 (patch) | |
tree | bdedaa2f07bc52ff5b02d6f51b3dde8f3e727d52 /src/shared/util.h | |
parent | dd144c63e285e35149f80b1a41af548ad040c037 (diff) |
journalctl: reset cached column count on SIGWINCH
This requires a little bit of tip-toeing around to explicitly avoid
touching the environment from a sig handler. Instead, simply create a
function to reset the var to its "unset" state, allowing the next call
to columns() to recalculate and cache the new value.
Diffstat (limited to 'src/shared/util.h')
-rw-r--r-- | src/shared/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index e1d4735ee3..61b88a8b2e 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -385,6 +385,7 @@ int status_welcome(void); int fd_columns(int fd); unsigned columns(void); unsigned columns_uncached(void); +void columns_cache_reset(int _unused_ signum); int fd_lines(int fd); unsigned lines(void); |