respond to CreateChan

This commit is contained in:
Michael Davidsaver
2019-11-08 10:52:50 -08:00
parent e1b8923f33
commit 946e557960
8 changed files with 196 additions and 11 deletions
+4 -1
View File
@@ -217,9 +217,10 @@ Server& Server::run()
Server::Pvt* expect = nullptr;
std::function<void()> cleanup;
if(sig_target.compare_exchange_weak(expect, pvt.get())) {
// we claimed the signal handler slot.
// save previous handlers
auto prevINT = signal(SIGINT , &sig_handle);
auto prevTERM = signal(SIGTERM, &sig_handle);
@@ -578,4 +579,6 @@ void Server::Pvt::doBeaconsS(evutil_socket_t fd, short evt, void *raw)
Source::~Source() {}
Handler::~Handler() {}
}} // namespace pvxs::server