dryang / rpms / systemd

Forked from rpms/systemd a year ago
Clone
84b277
From 4dd641efa81998ed328fd2c74be8beee7aa32dad Mon Sep 17 00:00:00 2001
84b277
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
84b277
Date: Fri, 9 May 2014 08:39:25 -0400
84b277
Subject: [PATCH] man: sd_journal_send does nothing when journald is not
84b277
 available
84b277
84b277
https://bugzilla.redhat.com/show_bug.cgi?id=1096067
84b277
84b277
(cherry-picked from bdf9fc1a940e342afb7a78075984419cb3bc3135)
84b277
84b277
Resolves: #1147524
84b277
---
84b277
 man/sd_journal_print.xml | 5 +++++
84b277
 1 file changed, 5 insertions(+)
84b277
84b277
diff --git a/man/sd_journal_print.xml b/man/sd_journal_print.xml
84b277
index a716cc3..d934b0a 100644
84b277
--- a/man/sd_journal_print.xml
84b277
+++ b/man/sd_journal_print.xml
84b277
@@ -218,6 +218,11 @@ sd_journal_send("MESSAGE=Hello World, this is PID %lu!", (unsigned long) getpid(
84b277
                 errno-style error code. The
84b277
                 <citerefentry><refentrytitle>errno</refentrytitle><manvolnum>3</manvolnum></citerefentry>
84b277
                 variable itself is not altered.</para>
84b277
+
84b277
+                <para>If
84b277
+                <citerefentry><refentrytitle>systemd-journald</refentrytitle><manvolnum>8</manvolnum></citerefentry>
84b277
+                is not running (the socket is not present), those
84b277
+                functions do nothing, and also return 0.</para>
84b277
         </refsect1>
84b277
 
84b277
         <refsect1>