Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-14 06:13:09 +00:00

nfqws2: replace printf with write in sighup

This commit is contained in:
bol-van
2026-01-03 13:24:18 +03:00
parent b239690e33
commit 0847d9f140
2 changed files with 3 additions and 2 deletions

View File

@@ -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;

View File

@@ -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()