mirror of
https://gitee.com/openharmony/startup_init
synced 2024-12-03 16:34:03 +00:00
commit
2c3c7104cc
@ -352,8 +352,8 @@ int ServiceStop(Service *service)
|
||||
|
||||
static bool CalculateCrashTime(Service *service, int crashTimeLimit, int crashCountLimit)
|
||||
{
|
||||
INIT_ERROR_CHECK(service != NULL && crashTimeLimit > 0 && crashCountLimit > 0, return 0,
|
||||
"Service name=%s, input params error.", service->name);
|
||||
INIT_ERROR_CHECK(service != NULL && crashTimeLimit > 0 && crashCountLimit > 0,
|
||||
return false, "input params error.");
|
||||
time_t curTime = time(NULL);
|
||||
if (service->crashCnt == 0) {
|
||||
service->firstCrashTime = curTime;
|
||||
|
@ -63,6 +63,7 @@ int GetParamValue(const char *symValue, unsigned int symLen, char *paramValue, u
|
||||
curr += begin - start;
|
||||
}
|
||||
while (*begin != '{') {
|
||||
INIT_CHECK_RETURN_VALUE(*begin != '\0', -1);
|
||||
begin++;
|
||||
}
|
||||
begin++;
|
||||
|
@ -69,7 +69,7 @@ typedef struct {
|
||||
|
||||
typedef struct {
|
||||
ParamMessage msg;
|
||||
uint32_t result;
|
||||
int32_t result;
|
||||
} ParamResponseMessage;
|
||||
|
||||
typedef LoopBase *ParamTaskPtr;
|
||||
|
Loading…
Reference in New Issue
Block a user