3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:29:23 +01:00

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

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)