Description:repair kill appspawn fail

Feature or Bugfix:Bugfix
Binary Source: No

Signed-off-by: cat <chenjinxiang3@huawei.com>
This commit is contained in:
cat 2024-04-30 08:30:08 +00:00
parent f69eb77faf
commit bbbc345a32

View File

@ -1206,7 +1206,6 @@ void StopAllServices(int flags, const char **exclude, int size,
if (service != NULL && service->pid > 0) { // notify appspawn stop
#ifndef STARTUP_INIT_TEST
kill(service->pid, SIGTERM);
waitpid(service->pid, 0, 0);
service->pid = -1;
#endif
}