diff --git a/man/sd_notify.xml b/man/sd_notify.xml index 0ba191c0ce..8ef1c507ca 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);