chiark / gitweb /
journalctl: reset cached column count on SIGWINCH
[elogind.git] / src / journal / journalctl.c
index 6b580d430749d423aea39818924018cbad5a32ad..e491c2766230a326f183639a86c2ee0ba5a4fc17 100644 (file)
@@ -29,6 +29,7 @@
 #include <sys/poll.h>
 #include <time.h>
 #include <getopt.h>
+#include <signal.h>
 #include <sys/stat.h>
 #include <sys/ioctl.h>
 #include <linux/fs.h>
@@ -175,6 +176,7 @@ static int parse_argv(int argc, char *argv[]) {
 
                 case 'f':
                         arg_follow = true;
+                        signal(SIGWINCH, columns_cache_reset);
                         break;
 
                 case 'o':