diff options
author | Roy Marples <roy@marples.name> | 2008-04-21 10:56:28 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-04-21 10:56:28 +0000 |
commit | 54d7aa39dd54ceaf7b7e509b3792bace9f34bad0 (patch) | |
tree | ca94ef0282dae7eec95cff79b26dbbde3dc390a2 /src/rc/runscript.c | |
parent | dc5d63aa9709f542e3a9cb7846f7a99cf60af0f6 (diff) |
If we don't have permission to inspect the pidfile, don't report crashed. Gentoo #218028.
Diffstat (limited to 'src/rc/runscript.c')
-rw-r--r-- | src/rc/runscript.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rc/runscript.c b/src/rc/runscript.c index 2f96d7ac..5977715a 100644 --- a/src/rc/runscript.c +++ b/src/rc/runscript.c @@ -559,8 +559,10 @@ static RC_SERVICE svc_status(void) snprintf(status, sizeof(status), "inactive"); e = &ewarn; } else if (state & RC_SERVICE_STARTED) { + errno = 0; if (_rc_can_find_pids() && - rc_service_daemons_crashed(service)) + rc_service_daemons_crashed(service) && + errno != EACCES) { snprintf(status, sizeof(status), "crashed"); e = &eerror; |