mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 13:50:00 -04:00
more waitpid loop tinkering
This commit is contained in:
parent
e5c7544550
commit
749356ec0e
1 changed files with 4 additions and 4 deletions
|
|
@ -244,15 +244,15 @@ main(int argc, char **argv)
|
|||
deadpid = waitpid(T_pid, &status, 0);
|
||||
if (deadpid == T_pid) {
|
||||
if (WIFSIGNALED(status)) {
|
||||
t_info("the test case caused an exception %d\n",
|
||||
WTERMSIG(status));
|
||||
if (WTERMSIG(status) == SIGTERM)
|
||||
t_info("the test case timed out\n");
|
||||
else
|
||||
t_info("the test case caused exception %d\n", WTERMSIG(status));
|
||||
t_result(T_UNRESOLVED);
|
||||
}
|
||||
}
|
||||
else if ((deadpid == -1) && (errno == EINTR) && T_int) {
|
||||
t_info("the test case was interrupted %d\n", T_int);
|
||||
kill(T_pid, SIGTERM);
|
||||
t_result(T_UNRESOLVED);
|
||||
T_int = 0;
|
||||
}
|
||||
else if ((deadpid == -1) &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue