various trivial tweaks (#41828)
This commit is contained in:
@@ -335,7 +335,7 @@ ssize_t varlink_execute_directory(
|
||||
|
||||
r = sd_varlink_set_relative_timeout(link, timeout_usec);
|
||||
if (r < 0)
|
||||
return r;
|
||||
return log_debug_errno(r, "Failed to set relative timeout: %m");
|
||||
|
||||
if (more)
|
||||
r = sd_varlink_observe(link, method, parameters);
|
||||
|
||||
+2
-2
@@ -67,7 +67,7 @@ static int help(void) {
|
||||
help_cmdline("[OPTIONS...] [VARIABLE=VALUE...]");
|
||||
help_cmdline("[OPTIONS...] --exec [VARIABLE=VALUE...] ; -- CMDLINE...");
|
||||
help_cmdline("[OPTIONS...] --fork -- CMDLINE...");
|
||||
help_abstract("Notify the init system about service status updates.");
|
||||
help_abstract("Notify the service manager about service status updates.");
|
||||
|
||||
help_section("Options:");
|
||||
r = table_print_or_warn(options);
|
||||
@@ -644,7 +644,7 @@ static int run(int argc, char* argv[]) {
|
||||
if (r == -E2BIG)
|
||||
return log_error_errno(r, "Too many file descriptors passed.");
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to notify init system: %m");
|
||||
return log_error_errno(r, "Failed to notify service manager: %m");
|
||||
if (r == 0)
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP),
|
||||
"No status data could be sent: $NOTIFY_SOCKET was not set");
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
/* These are helpers for putting together --help texts in a uniform way with a common output style. Each
|
||||
* function generates a separate part of the --help text:
|
||||
*
|
||||
* 1. help_cmdline() outputs a brief summary of the command line syntax. (used at least once, in some cases
|
||||
* multiple times.) This generally comes first in the output.
|
||||
* 1. help_cmdline() outputs a brief summary of the command line syntax. This shall be used at least once,
|
||||
* in some cases multiple times. This generally comes first in the output.
|
||||
*
|
||||
* 2. help_abstract() outputs a brief prose abstract of the command, should carry a single line of text
|
||||
* that gives the user a hint what this tool does. Use only once, right after the last help_cmdline().
|
||||
|
||||
@@ -1009,7 +1009,7 @@ TEST(execute_directory) {
|
||||
/* timeout_usec= */ USEC_INFINITY,
|
||||
execute_dir_reply,
|
||||
&reply_count), (ssize_t) ELEMENTSOF(names));
|
||||
ASSERT_EQ(reply_count, (unsigned) ELEMENTSOF(names));
|
||||
ASSERT_EQ(reply_count, ELEMENTSOF(names));
|
||||
|
||||
FOREACH_ELEMENT(eds, servers) {
|
||||
ASSERT_OK(-pthread_join(eds->thread, NULL));
|
||||
|
||||
Reference in New Issue
Block a user