mirror of
https://gitee.com/openharmony/startup_init
synced 2024-11-23 16:20:00 +00:00
!2875 begetctl appspawntime_cmd代码优化
Merge pull request !2875 from 林楠木/master
This commit is contained in:
commit
9c6621e0a5
@ -39,6 +39,10 @@ static int SendAppspawnTimeMessage(const CmdAgent *agent, uint16_t type, const c
|
||||
BEGET_ERROR_CHECK(ret == 0, return -1, "AppSpawnClientInit error, errno = %d", errno);
|
||||
AppSpawnReqMsgHandle reqHandle;
|
||||
ret = AppSpawnReqMsgCreate(MSG_BEGET_SPAWNTIME, "init", &reqHandle);
|
||||
if (ret != 0) {
|
||||
AppSpawnClientDestroy(clientHandle);
|
||||
return -1;
|
||||
}
|
||||
AppSpawnResult result = {};
|
||||
ret = AppSpawnClientSendMsg(clientHandle, reqHandle, &result);
|
||||
if (ret != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user