崩溃重启时间改成3秒 (#1536)

在负载比较重的机器上重启子进程太快了.
很容易导致端口仍旧还未释放完毕导致的错误
端口已被占用
从而主进程直接退出.
因此适当延长重启的间隔时间
This commit is contained in:
alexliyu7352 2022-04-03 17:32:38 +08:00 committed by GitHub
parent 9ea6faa9ce
commit 007164ac9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,8 +110,8 @@ void System::startDaemon() {
int status = 0;
if(waitpid(pid, &status, 0) >= 0) {
WarnL << "子进程退出";
//休眠1秒再启动子进程
sleep(1);
//休眠3秒再启动子进程
sleep(3);
break;
}
DebugL << "waitpid被中断:" << get_uv_errmsg();