Check for failure when registering event manager with iosource manager (Coverity 1419398)

This commit is contained in:
Tim Wojtulewicz 2020-02-12 16:39:00 -08:00
parent 20eb0e15c7
commit 12230ceb83

View file

@ -234,5 +234,6 @@ void EventMgr::Process()
void EventMgr::InitPostScript()
{
iosource_mgr->Register(this, true, false);
iosource_mgr->RegisterFd(queue_flare.FD(), this);
if ( ! iosource_mgr->RegisterFd(queue_flare.FD(), this) )
reporter->FatalError("Failed to register event manager FD with iosource_mgr");
}