Add short delay when using nntp.reload to allow port to be released before trying to bind again.
This commit is contained in:
parent
031181c253
commit
75546cdb78
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue