X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsd_journal_print.xml;fp=man%2Fsd_journal_print.xml;h=57d908fe2272832effe20584b8cd7c72a44d0f46;hb=65b3903ff576488eaabb51d3c4fbf9c73d867d7c;hp=a716cc35e6cf35fb78e46989a84e285f4137d2ff;hpb=8e33886ec582336564ae11b80023abe93d7599c0;p=elogind.git
diff --git a/man/sd_journal_print.xml b/man/sd_journal_print.xml
index a716cc35e..57d908fe2 100644
--- a/man/sd_journal_print.xml
+++ b/man/sd_journal_print.xml
@@ -153,8 +153,8 @@
for details) instead of the format string. Each
structure should reference one field of the entry to
submit. The second argument specifies the number of
- structures in the
- array. sd_journal_sendv() is
+ structures in the array.
+ sd_journal_sendv() is
particularly useful to submit binary objects to the
journal where that is necessary.
@@ -220,6 +220,19 @@ sd_journal_send("MESSAGE=Hello World, this is PID %lu!", (unsigned long) getpid(
variable itself is not altered.
+
+ Async signal safety
+ sd_journal_sendv() is "async signal
+ safe" in the meaning of signal7.
+
+
+ sd_journal_print,
+ sd_journal_printv,
+ sd_journal_send, and
+ sd_journal_perror are
+ not async signal safe.
+
+
Notes
@@ -233,6 +246,16 @@ sd_journal_send("MESSAGE=Hello World, this is PID %lu!", (unsigned long) getpid(
file.
+
+ History
+
+ sd_journal_sendv() was
+ modified to guarantee async-signal-safety in
+ systemd-209. Before that, it would behave safely only
+ when entry size was small enough to fit in one (large)
+ datagram.
+
+
See Also
@@ -243,7 +266,9 @@ sd_journal_send("MESSAGE=Hello World, this is PID %lu!", (unsigned long) getpid(
syslog3,
perror3,
errno3,
- systemd.journal-fields7
+ systemd.journal-fields7,
+ signal7,
+ socket7