aboutsummaryrefslogtreecommitdiff
path: root/src/proone-bne.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-bne.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-bne.c')
-rw-r--r--src/proone-bne.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/proone-bne.c b/src/proone-bne.c
index e3165b6..20fb24b 100644
--- a/src/proone-bne.c
+++ b/src/proone-bne.c
@@ -4,6 +4,7 @@
#include <string.h>
#include <errno.h>
+#include <signal.h>
#include <unistd.h>
#include <fcntl.h>
#include <arpa/inet.h>
@@ -186,6 +187,8 @@ int main (const int argc, const char **args) {
pth_event_t ev_root = NULL;
prne_llist_t wkr_list;
+ signal(SIGPIPE, SIG_IGN);
+
prne_init_cred_dict(&dict);
prne_init_bne_param(&param);
prne_init_bin_archive(&ba);