]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: fix description of "resources" service error (#3119)
authorLennart Poettering <lennart@poettering.net>
Mon, 25 Apr 2016 19:36:25 +0000 (21:36 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 25 Apr 2016 19:36:25 +0000 (15:36 -0400)
The "resources" error is really just the generic error we return when
we hit some kind of error and we have no more appropriate error for the case to
return, for example because of some OS error.

Hence, reword the explanation and don't claim any relation to resource limits.

Admittedly, the "resources" service error is a bit of a misnomer, but I figure
it's kind of API now.

Fixes: #2716
src/core/service.h
src/shared/bus-unit-util.c

index a5ced215e45b433b982296b72106e1ddb984f7af..cd9e41646e4b86e373a06abff4d478ed921b7c0d 100644 (file)
@@ -80,7 +80,7 @@ typedef enum NotifyState {
 
 typedef enum ServiceResult {
         SERVICE_SUCCESS,
-        SERVICE_FAILURE_RESOURCES,
+        SERVICE_FAILURE_RESOURCES, /* a bit of a misnomer, just our catch-all error for errnos we didn't expect */
         SERVICE_FAILURE_TIMEOUT,
         SERVICE_FAILURE_EXIT_CODE,
         SERVICE_FAILURE_SIGNAL,
index da479aec8d4217be8b5c90dcb70735e5444a7701..2b755cea28bc390981454158f903106446c3fe8e 100644 (file)
@@ -684,7 +684,7 @@ static int bus_job_get_service_result(BusWaitForJobs *d, char **result) {
 static const struct {
         const char *result, *explanation;
 } explanations [] = {
-        { "resources",   "a configured resource limit was exceeded" },
+        { "resources",   "of unavailable resources or another system error" },
         { "timeout",     "a timeout was exceeded" },
         { "exit-code",   "the control process exited with error code" },
         { "signal",      "a fatal signal was delivered to the control process" },