From: Zbigniew Jędrzejewski-Szmek Date: Sun, 22 Jan 2023 16:51:30 +0000 (+0100) Subject: man/sd_notify: fix indentation in sample programs X-Git-Tag: v253-rc1~34^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=066991f9fe510d0b4c9530f8b455b5b32b63a554;p=thirdparty%2Fsystemd.git 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. --- 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);