Re: [systemd-devel] odd seek_tail behaviour

2014-10-24 Thread Sascha Kattelmann
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

Re: [systemd-devel] odd seek_tail behaviour

2014-10-14 Thread Christian Hesse
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

Re: [systemd-devel] odd seek_tail behaviour

2014-10-13 Thread Daurnimator
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

Re: [systemd-devel] odd seek_tail behaviour

2014-10-13 Thread Christian Hesse
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

Re: [systemd-devel] odd seek_tail behaviour

2014-10-13 Thread Christian Hesse
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

[systemd-devel] odd seek_tail behaviour

2014-10-12 Thread Daurnimator
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