mirror of
https://github.com/openharmony/startup_init_lite.git
synced 2026-07-19 17:07:55 -04:00
init : add sleep cmd
Signed-off-by: zhong_ning <zhong_ning@hoperun.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user