mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 17:59:25 +01:00
t-runner: Replaced process kill signal
This commit is contained in:
parent
b4e3c0d45d
commit
d9744f3824
@ -347,13 +347,13 @@ static void kill_process(pid_t pid)
|
|||||||
{
|
{
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
kill(pid, SIGKILL);
|
l_info("Terminate pid: %d", pid);
|
||||||
|
|
||||||
|
kill(pid, SIGTERM);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
waitpid(pid, &status, 0);
|
waitpid(pid, &status, 0);
|
||||||
} while (!WIFEXITED(status) && !WIFSIGNALED(status));
|
} while (!WIFEXITED(status) && !WIFSIGNALED(status));
|
||||||
|
|
||||||
l_info("Process terminated: %d\n", pid);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool wait_for_socket(const char *socket, useconds_t wait_time)
|
static bool wait_for_socket(const char *socket, useconds_t wait_time)
|
||||||
|
Loading…
Reference in New Issue
Block a user