From 857e53cf30d17a1fe87b683bb26a54899760dcd8 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Fri, 9 Jul 2021 09:39:44 +0200 Subject: various improvements to logging and performance added service timeout (180s), improved debug logging, moved persistence checking havocs into single noise by selecting randomly which type of stl to upload (still check correctness of parsing of any type in havocs) --- src/main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index ff04849..cf4c3dc 100644 --- a/src/main.c +++ b/src/main.c @@ -5,6 +5,7 @@ #include #include #include +#include #include #include @@ -458,6 +459,12 @@ cleanexit() free(resultdir); } +void +timeout() +{ + die("time's up!\n"); +} + int main() { @@ -465,6 +472,9 @@ main() int exit, i, cmdlen; char *cp, *arg; + signal(SIGALRM, timeout); + alarm(180); + if (!(envstr = getenv("RESULTDIR"))) die("RESULTDIR not defined\n"); -- cgit v1.2.3-71-gd317