Add short delay when using nntp.reload to allow port to be released before trying to bind again.

This commit is contained in:
Retro_Guy 2024-08-25 13:41:28 -07:00
parent 031181c253
commit 75546cdb78
2 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,8 @@
$parent_pid = file_get_contents($lockfile);
posix_kill($parent_pid, SIGTERM);
unlink($config_dir . "/nntp.reload");
unlink($lockfile);
sleep(5);
}
/**
* Listens for requests and forks on each connection

View File

@ -16,6 +16,8 @@
if (!is_numeric($CONFIG['local_ssl_port'])) {
unlink($config_dir . "/nntp.reload");
}
unlink($lockfile);
sleep(5);
}
/**
* Listens for requests and forks on each connection