respond to CreateChan
This commit is contained in:
+4
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user