From 63e300ed082b82530ad5ae0949f45686746b7c9b Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 22 Oct 2017 03:10:48 +0100 Subject: Deduplicate error handling in the socket engines. --- include/socketengine.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/socketengine.h') diff --git a/include/socketengine.h b/include/socketengine.h index 34dd306ba..0187a043e 100644 --- a/include/socketengine.h +++ b/include/socketengine.h @@ -283,6 +283,9 @@ class CoreExport SocketEngine /** Look up the fd limit using rlimit. */ static void LookupMaxFds(); + /** Terminates the program when the socket engine fails to initialize. */ + static void InitError(); + static void OnSetEvent(EventHandler* eh, int old_mask, int new_mask); /** Add an event handler to the base socket engine. AddFd(EventHandler*, int) should call this. -- cgit v1.2.3