From 9cc889d0ac25f4e9783a87f3f6cb0bcfa79c5c88 Mon Sep 17 00:00:00 2001 From: David Timber Date: Mon, 26 Apr 2021 18:00:52 +1000 Subject: Tweak and bug fix * Increase socket operation timeout of htbt and resolv * htbt: use of term "jitter" * htbt: Fix bug where debug print is not suppresses when `PRNE_VERBOSE < PRNE_VL_DBG0` * Fix crash bug caused by SIGPIPE * Proone: `sleep(1)` when fork fails --- src/proone-htbthost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/proone-htbthost.c') diff --git a/src/proone-htbthost.c b/src/proone-htbthost.c index eb499b6..32c6158 100644 --- a/src/proone-htbthost.c +++ b/src/proone-htbthost.c @@ -354,11 +354,11 @@ int main (const int argc, const char **args) { } c; } ssl; + signal(SIGPIPE, SIG_IGN); sigemptyset(&ss_all); sigemptyset(&ss_exit); sigaddset(&ss_all, SIGTERM); sigaddset(&ss_all, SIGINT); - sigaddset(&ss_all, SIGPIPE); sigaddset(&ss_exit, SIGTERM); sigaddset(&ss_exit, SIGINT); assert(regcomp( -- cgit