nfqws: do not reconstruct synack-split in syn mode

This commit is contained in:
bol-van
2025-05-10 09:41:26 +03:00
parent 4b632313e2
commit 6d52b49b98
3 changed files with 40 additions and 36 deletions

View File

@@ -343,9 +343,13 @@ void print_id(void)
#endif
void daemonize(void)
{
int pid;
#ifdef __CYGWIN__
char *cwd = get_current_dir_name();
#endif
pid = fork();
if (pid == -1)
@@ -356,6 +360,10 @@ void daemonize(void)
else if (pid != 0)
exit(0);
#ifdef __CYGWIN__
chdir(get_current_dir_name());
#endif
if (setsid() == -1)
exit(2);
if (chdir("/") == -1)