Update trantor using kqueue in MacOS
This commit is contained in:
parent
ee4853d8f8
commit
2126d1a394
|
@ -351,6 +351,7 @@ void HttpAppFrameworkImpl::run()
|
|||
#ifdef __linux__
|
||||
_loop.resetTimerQueue();
|
||||
#endif
|
||||
_loop.resetAfterFork();
|
||||
}
|
||||
//set relaunching
|
||||
if (_relaunchOnError)
|
||||
|
@ -373,6 +374,7 @@ void HttpAppFrameworkImpl::run()
|
|||
sleep(1);
|
||||
LOG_INFO << "start new process";
|
||||
}
|
||||
_loop.resetAfterFork();
|
||||
}
|
||||
|
||||
//set logger
|
||||
|
|
|
@ -93,8 +93,8 @@ class HttpAppFrameworkImpl : public HttpAppFramework
|
|||
virtual trantor::EventLoop *loop() override;
|
||||
virtual void quit() override
|
||||
{
|
||||
assert(_loop.isRunning());
|
||||
_loop.quit();
|
||||
if (_loop.isRunning())
|
||||
_loop.quit();
|
||||
}
|
||||
#if USE_ORM
|
||||
virtual orm::DbClientPtr getDbClient(const std::string &name = "default") override;
|
||||
|
|
2
trantor
2
trantor
|
@ -1 +1 @@
|
|||
Subproject commit 4dade42572b5fc053b4dbe21eede15d5b0f55197
|
||||
Subproject commit 49c6311642f38070d34dd1a4f0408f8f41a5ebfc
|
Loading…
Reference in New Issue