t-runner: Replaced process kill signal

This commit is contained in:
Tim Kourt 2016-05-04 16:14:40 -07:00 committed by Denis Kenzior
parent b4e3c0d45d
commit d9744f3824
1 changed files with 3 additions and 3 deletions

View File

@ -347,13 +347,13 @@ static void kill_process(pid_t pid)
{
int status;
kill(pid, SIGKILL);
l_info("Terminate pid: %d", pid);
kill(pid, SIGTERM);
do {
waitpid(pid, &status, 0);
} while (!WIFEXITED(status) && !WIFSIGNALED(status));
l_info("Process terminated: %d\n", pid);
}
static bool wait_for_socket(const char *socket, useconds_t wait_time)