From 0847d9f140292b7c3911f16a49412e658d7b65c3 Mon Sep 17 00:00:00 2001 From: bol-van Date: Sat, 3 Jan 2026 13:24:18 +0300 Subject: [PATCH] nfqws2: replace printf with write in sighup --- nfq2/desync.c | 2 +- nfq2/nfqws.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nfq2/desync.c b/nfq2/desync.c index b31654d..b8e77fb 100644 --- a/nfq2/desync.c +++ b/nfq2/desync.c @@ -1492,7 +1492,7 @@ static void udp_standard_protocol_probe(const uint8_t *data_payload, size_t len_ protocol_probe(testers, sizeof(testers) / sizeof(*testers), data_payload, len_payload, ctrack, l7proto, l7payload); } -static const uint8_t *dns_extract_name(const uint8_t *a, const uint8_t *b, const uint8_t *e, uint8_t *name, size_t name_size) +static const uint8_t *dns_extract_name(const uint8_t *a, const uint8_t *b, const uint8_t *e, char *name, size_t name_size) { size_t nl, off; const uint8_t *p; diff --git a/nfq2/nfqws.c b/nfq2/nfqws.c index f88deb2..aed66e8 100644 --- a/nfq2/nfqws.c +++ b/nfq2/nfqws.c @@ -58,7 +58,8 @@ bool bQuit = false; static void onhup(int sig) { - printf("HUP received ! Lists will be reloaded.\n"); + const char *msg = "HUP received ! Lists will be reloaded.\n"; + size_t wr = write(1, msg, strlen(msg)); bReload = true; } static void ReloadCheck()