apply loc_bad_alloc to owned_ptr

Distinguish location of owned_ptr failure
This commit is contained in:
Michael Davidsaver
2023-03-28 11:13:52 -07:00
parent d692d7da2c
commit 303bc61079
11 changed files with 36 additions and 22 deletions
+2 -1
View File
@@ -429,7 +429,8 @@ ServIface::ServIface(const SockAddr &addr, server::Server::Pvt *server, bool fal
#endif
const int backlog = 4;
listener = evlisten(evconnlistener_new(server->acceptor_loop.base, onConnS, this, LEV_OPT_DISABLED|LEV_OPT_CLOSE_ON_EXEC, backlog, sock.sock));
listener = evlisten(__FILE__, __LINE__,
evconnlistener_new(server->acceptor_loop.base, onConnS, this, LEV_OPT_DISABLED|LEV_OPT_CLOSE_ON_EXEC, backlog, sock.sock));
if(!LEV_OPT_DISABLED)
evconnlistener_disable(listener.get());