From 7699b6eb9859ef7fecb1a0e2e156d65ed7d86b2a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 10 Jun 2013 10:22:08 -0400 Subject: [PATCH] man: add note that sd_journal_open_files is racy --- man/sd_journal_open.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/man/sd_journal_open.xml b/man/sd_journal_open.xml index 4ac94c4ce..182840e1d 100644 --- a/man/sd_journal_open.xml +++ b/man/sd_journal_open.xml @@ -125,7 +125,11 @@ of file paths to open. All files will be opened and interleaved automatically. This call also takes a flags argument, but it must be passed as 0 as no flags - are currently understood for this call. + are currently understood for this call. Please note + that in case of a live journal, this function is only + useful for debugging, because individual journal files + can be rotated at any moment, and the opening of + specific files in inherently racy. sd_journal_close() will close the journal context allocated with -- 2.30.2