return;
}
- _E("pid(%d)", app_status->GetPID());
- int ret = kill(app_status->GetPID(), SIGKILL);
+ _E("pid(%d), is_starting(%s)", app_status->GetPID(),
+ app_status->IsStarting() ? "true" : "false");
+ int signo = app_status->IsStarting() ? SIGKILL : SIGABRT;
+ int ret = kill(app_status->GetPID(), signo);
if (ret < 0) {
- _W("Failed to send SIGKILL, pid(%d), errno(%d)",
- app_status->GetPID(), errno);
+ _W("Failed to send signal(%d), pid(%d), errno(%d)",
+ signo, app_status->GetPID(), errno);
}
}