chiark / gitweb /
man: sd_journal_send does nothing when journald is not available
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 9 May 2014 12:39:25 +0000 (08:39 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 9 May 2014 12:39:51 +0000 (08:39 -0400)
https://bugzilla.redhat.com/show_bug.cgi?id=1096067

man/sd_journal_print.xml

index b636bcff17f8a37428e29036bc9630b6684eaccd..0b78502c5fef33993413ded4bdefa0ccd6ebfb80 100644 (file)
@@ -218,6 +218,11 @@ sd_journal_send("MESSAGE=Hello World, this is PID %lu!", (unsigned long) getpid(
                 errno-style error code. The
                 <citerefentry><refentrytitle>errno</refentrytitle><manvolnum>3</manvolnum></citerefentry>
                 variable itself is not altered.</para>
                 errno-style error code. The
                 <citerefentry><refentrytitle>errno</refentrytitle><manvolnum>3</manvolnum></citerefentry>
                 variable itself is not altered.</para>
+
+                <para>If
+                <citerefentry><refentrytitle>systemd-journald</refentrytitle><manvolnum>8</manvolnum></citerefentry>
+                is not running (the socket is not present), those
+                functions do nothing, and also return 0.</para>
         </refsect1>
 
         <refsect1>
         </refsect1>
 
         <refsect1>