mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-04 08:35:31 +00:00
more waitpid loop tinkering
This commit is contained in:
@@ -244,15 +244,15 @@ main(int argc, char **argv)
|
|||||||
deadpid = waitpid(T_pid, &status, 0);
|
deadpid = waitpid(T_pid, &status, 0);
|
||||||
if (deadpid == T_pid) {
|
if (deadpid == T_pid) {
|
||||||
if (WIFSIGNALED(status)) {
|
if (WIFSIGNALED(status)) {
|
||||||
t_info("the test case caused an exception %d\n",
|
if (WTERMSIG(status) == SIGTERM)
|
||||||
WTERMSIG(status));
|
t_info("the test case timed out\n");
|
||||||
|
else
|
||||||
|
t_info("the test case caused exception %d\n", WTERMSIG(status));
|
||||||
t_result(T_UNRESOLVED);
|
t_result(T_UNRESOLVED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ((deadpid == -1) && (errno == EINTR) && T_int) {
|
else if ((deadpid == -1) && (errno == EINTR) && T_int) {
|
||||||
t_info("the test case was interrupted %d\n", T_int);
|
|
||||||
kill(T_pid, SIGTERM);
|
kill(T_pid, SIGTERM);
|
||||||
t_result(T_UNRESOLVED);
|
|
||||||
T_int = 0;
|
T_int = 0;
|
||||||
}
|
}
|
||||||
else if ((deadpid == -1) &&
|
else if ((deadpid == -1) &&
|
||||||
|
Reference in New Issue
Block a user