chiark / gitweb /
journalctl: only output 10 most recent lines in --follow mode
[elogind.git] / src / journal / test-journal.c
index 45ced12b46ef3ca89e8278003c10c8fca4399f0f..3d429bea9051bbdbbad4f539bbcd7db8525c503a 100644 (file)
@@ -22,6 +22,7 @@
 #include <fcntl.h>
 #include <unistd.h>
 
+#include "sd-journal.h"
 #include "journal-file.h"
 #include "log.h"
 
@@ -112,5 +113,7 @@ int main(int argc, char *argv[]) {
 
         journal_directory_vacuum(".", 3000000, 0);
 
+        log_error("Exiting...");
+
         return 0;
 }