aboutsummaryrefslogtreecommitdiff
path: root/src/proone-htbthost.c
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2021-04-26 18:00:52 +1000
committerDavid Timber <mieabby@gmail.com>2021-04-26 18:00:52 +1000
commit9cc889d0ac25f4e9783a87f3f6cb0bcfa79c5c88 (patch)
tree12659bd5577977c820ab991cebb46b291136bb92 /src/proone-htbthost.c
parent7e065471e598c9bc0a1799ff2caa8c799d76c003 (diff)
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
Diffstat (limited to 'src/proone-htbthost.c')
-rw-r--r--src/proone-htbthost.c2
1 files changed, 1 insertions, 1 deletions
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(