mirror of
https://github.com/clearlinux/tallow.git
synced 2026-08-19 11:05:48 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5503ff0b20 |
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
AC_PREREQ([2.64])
|
AC_PREREQ([2.64])
|
||||||
AC_INIT([tallow], [10], [auke-jan.h.kok@intel.com])
|
AC_INIT([tallow], [11], [auke-jan.h.kok@intel.com])
|
||||||
AM_INIT_AUTOMAKE([foreign])
|
AM_INIT_AUTOMAKE([foreign])
|
||||||
AC_CONFIG_FILES([Makefile])
|
AC_CONFIG_FILES([Makefile])
|
||||||
|
|
||||||
|
|||||||
@@ -434,6 +434,9 @@ int main(void)
|
|||||||
if (r == SD_JOURNAL_INVALIDATE) {
|
if (r == SD_JOURNAL_INVALIDATE) {
|
||||||
fprintf(stderr, "Journal was rotated, resetting\n");
|
fprintf(stderr, "Journal was rotated, resetting\n");
|
||||||
sd_journal_seek_tail(j);
|
sd_journal_seek_tail(j);
|
||||||
|
} else if (r == SD_JOURNAL_NOP) {
|
||||||
|
dbg("Timeout reached, waiting again\n");
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (sd_journal_next(j) != 0) {
|
while (sd_journal_next(j) != 0) {
|
||||||
@@ -441,7 +444,7 @@ int main(void)
|
|||||||
|
|
||||||
if (sd_journal_get_data(j, "MESSAGE", &d, &l) < 0) {
|
if (sd_journal_get_data(j, "MESSAGE", &d, &l) < 0) {
|
||||||
fprintf(stderr, "Failed to read message field: %s\n", strerror(-r));
|
fprintf(stderr, "Failed to read message field: %s\n", strerror(-r));
|
||||||
continue;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
m = strndup(d, l+1);
|
m = strndup(d, l+1);
|
||||||
|
|||||||
Reference in New Issue
Block a user