From: Zbigniew Jędrzejewski-Szmek Date: Sat, 20 Jan 2018 03:23:54 +0000 (+1100) Subject: man: document signal unsafeness of journal functions X-Git-Tag: v237~69^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=89f552c0e26afd65fc0c825f843aeedc5d8ae29f;p=thirdparty%2Fsystemd.git man: document signal unsafeness of journal functions Fixes #7912. --- diff --git a/man/sd_journal_get_fd.xml b/man/sd_journal_get_fd.xml index b162b2bf114..24ececd9cbb 100644 --- a/man/sd_journal_get_fd.xml +++ b/man/sd_journal_get_fd.xml @@ -230,6 +230,20 @@ else { journal. + + Signal safety + + In general, sd_journal_get_fd(), + sd_journal_get_events(), and sd_journal_get_timeout() + are not "async signal safe" in the meaning of + signal7. + Nevertheless, only the first call to any of those three functions performs unsafe operations, so + subsequent calls are safe. + + sd_journal_process() and sd_journal_wait() are not + safe. sd_journal_reliable_fd() is safe. + + Notes