From 283074ad42e64afa74421921e51126eccb35c9bf Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Mon, 20 May 2019 16:34:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=90=AF=E5=B4=A9=E6=BA=83=E6=8D=95?= =?UTF-8?q?=E8=8E=B7=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server/main.cpp b/server/main.cpp index bf3d891a..6b52e0dc 100644 --- a/server/main.cpp +++ b/server/main.cpp @@ -217,6 +217,9 @@ int main(int argc,char *argv[]) { System::startDaemon(); } + //开启崩溃捕获等 + System::systemSetup(); + //启动异步日志线程 Logger::Instance().setWriter(std::make_shared()); //加载配置文件,如果配置文件不存在就创建一个 @@ -236,9 +239,7 @@ int main(int argc,char *argv[]) { uint16_t httpPort = mINI::Instance()[Http::kPort]; uint16_t httpsPort = mINI::Instance()[Http::kSSLPort]; - /** - * 设置poller线程数,该函数必须在使用ZLToolKit网络相关对象之前调用才能生效 - */ + //设置poller线程数,该函数必须在使用ZLToolKit网络相关对象之前调用才能生效 EventPollerPool::setPoolSize(threads); //简单的telnet服务器,可用于服务器调试,但是不能使用23端口,否则telnet上了莫名其妙的现象