aboutsummaryrefslogtreecommitdiff
path: root/src/rc/rc-status.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc/rc-status.c')
-rw-r--r--src/rc/rc-status.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/rc/rc-status.c b/src/rc/rc-status.c
index e4917c86..a64ab1b5 100644
--- a/src/rc/rc-status.c
+++ b/src/rc/rc-status.c
@@ -103,9 +103,13 @@ static void print_service(const char *service)
snprintf(status, sizeof(status), "inactive ");
color = ECOLOR_WARN;
} else if (state & RC_SERVICE_STARTED) {
- if (test_crashed && rc_service_daemons_crashed(service))
+ errno = 0;
+ if (test_crashed &&
+ rc_service_daemons_crashed(service) &&
+ errno != EACCES)
+ {
snprintf(status, sizeof(status), " crashed ");
- else {
+ } else {
snprintf(status, sizeof(status), " started ");
color = ECOLOR_GOOD;
}