mirror of
https://gitee.com/openharmony/startup_init
synced 2024-11-23 16:20:00 +00:00
init : add sleep cmd
Signed-off-by: zhong_ning <zhong_ning@hoperun.com>
This commit is contained in:
parent
869e24068c
commit
33f138fb00
@ -292,7 +292,7 @@ static void DoSleep(const char *cmdContent)
|
||||
}
|
||||
|
||||
errno = 0;
|
||||
unsigned long sleepTime = stroul(ctx->argv[0], NULL, 10);
|
||||
unsigned long sleepTime = strtoul(ctx->argv[0], NULL, 10);
|
||||
if (errno != 0) {
|
||||
INIT_LOGE("cannot covert sleep time in command \" sleep \"");
|
||||
goto out;
|
||||
|
Loading…
Reference in New Issue
Block a user