From 066991f9fe510d0b4c9530f8b455b5b32b63a554 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sun, 22 Jan 2023 17:51:30 +0100 Subject: [PATCH] man/sd_notify: fix indentation in sample programs Whether we use a newline at the beginning of or not doesn't seem to have any effect. So let's use the newline in multi-line examples; it is easier to get the indentation right this way. --- man/sd_notify.xml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/man/sd_notify.xml b/man/sd_notify.xml index 0ba191c0cee..8ef1c507cac 100644 --- a/man/sd_notify.xml +++ b/man/sd_notify.xml @@ -436,10 +436,11 @@ A service could send the following after completing initialization: - sd_notifyf(0, "READY=1\n" - "STATUS=Processing requests…\n" - "MAINPID=%lu", - (unsigned long) getpid()); + +sd_notifyf(0, "READY=1\n" + "STATUS=Processing requests…\n" + "MAINPID=%lu", + (unsigned long) getpid()); @@ -447,10 +448,11 @@ A service could send the following shortly before exiting, on failure: - sd_notifyf(0, "STATUS=Failed to start up: %s\n" - "ERRNO=%i", - strerror_r(errnum, (char[1024]){}, 1024), - errnum); + +sd_notifyf(0, "STATUS=Failed to start up: %s\n" + "ERRNO=%i", + strerror_r(errnum, (char[1024]){}, 1024), + errnum); @@ -473,9 +475,10 @@ to synchronize against reception of all notifications sent before this call is made. - sd_notify(0, "READY=1"); - /* set timeout to 5 seconds */ - sd_notify_barrier(0, 5 * 1000000); + +sd_notify(0, "READY=1"); +/* set timeout to 5 seconds */ +sd_notify_barrier(0, 5 * 1000000); -- 2.47.3