Skip to content
Snippets Groups Projects
Commit a3572b99 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Tools.Standalone.test_pike: Do not close stdin.

Potential fix for testsuite hanging on exit.

Fixes [PIKE-196].
parent 6564f881
No related branches found
No related tags found
No related merge requests found
......@@ -262,7 +262,11 @@ class Watchdog
WATCHDOG_MSG ("Error reading stdin pipe: %s\n",
strerror (stdin->errno()));
}
if (!timeout_phase) {
_exit(EXIT_OK);
} else {
_exit(EXIT_WATCHDOG_FAILED);
}
}
void check_parent_pid()
......@@ -303,7 +307,6 @@ class Watchdog
}
WATCHDOG_MSG ("%s: Sending SIGABRT to %d.\n", ts, watched_pid);
kill(watched_pid, signum("SIGABRT"));
stdin->close();
timeout_phase = 1;
call_out (timeout, 60);
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment