summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server.c b/src/server.c
index 21c378d..d9bb996 100644
--- a/src/server.c
+++ b/src/server.c
@@ -754,6 +754,10 @@ XhivOpenServer(xhiv_response *responses, pid_t *return_pid)
fflush(stdout);
fflush(stderr);
+ /* All tests should finish in less than 5 minutes - set timer to kill
+ any processes that fail to notice their other half crashed */
+ alarm(300);
+
kidpid = fork();
if (kidpid == 0) { /* child */
free(display);