need to do a next immediately after seek_head.
I hope that will help,
Sascha
- Original Message -
From: Daurnimator q...@daurnimator.com
To: systemd Mailing List systemd-devel@lists.freedesktop.org
Sent: Monday, October 13, 2014 7:27:22 AM
Subject: [systemd-devel] odd seek_tail behaviour
Christian Hesse l...@eworm.de on Mon, 2014/10/13 23:56:
Christian Hesse l...@eworm.de on Mon, 2014/10/13 20:22:
Daurnimator q...@daurnimator.com on Mon, 2014/10/13 01:27:
Hi All,
I was trying to write a program that tailed the journal, but found that
sd_journal_seek_tail() didn't
On 13 October 2014 07:22, Sascha Kattelmann skattelm...@tpip.net wrote:
here is a related bug report:
https://bugs.freedesktop.org/show_bug.cgi?id=64614
sd_journal_next() is documented as returning '0' if there are no more
entries available after the current position.
So this sounds like a
Daurnimator q...@daurnimator.com on Mon, 2014/10/13 01:27:
Hi All,
I was trying to write a program that tailed the journal, but found that
sd_journal_seek_tail() didn't work as expected.
That is: that it would seek to the last/most recent thing in the journal,
and I could tail things from
Christian Hesse l...@eworm.de on Mon, 2014/10/13 20:22:
Daurnimator q...@daurnimator.com on Mon, 2014/10/13 01:27:
Hi All,
I was trying to write a program that tailed the journal, but found that
sd_journal_seek_tail() didn't work as expected.
That is: that it would seek to the
Hi All,
I was trying to write a program that tailed the journal, but found that
sd_journal_seek_tail() didn't work as expected.
That is: that it would seek to the last/most recent thing in the journal,
and I could tail things from there.
I whipped up a quick demonstration program, that shows