When the process cannot open a new file descriptior, the rpc-port
library throws an exception to create coredump file.
Change-Id: I5b9ebe83342cfca4511d4329676b67365d374e5d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
auto* addr_ptr = reinterpret_cast<struct sockaddr*>(&addr);
int client_fd = accept(GetFd(), addr_ptr, &len);
if (client_fd == -1) {
+ if (errno == EMFILE || errno == ENFILE)
+ THROW(-errno);
+
_E("accept() is failed. errno(%d)", errno); // LCOV_EXCL_LINE
return nullptr; // LCOV_EXCL_LINE
}