giving up on strerror_r

This commit is contained in:
Guenter Obiltschnig
2016-09-08 10:12:54 +02:00
parent ed88e8d46d
commit 909c06ac6c
2 changed files with 4 additions and 12 deletions

View File

@@ -402,9 +402,7 @@ bool SocketImpl::poll(const Poco::Timespan& timeout, int mode)
int epollfd = epoll_create(1);
if (epollfd < 0)
{
char buf[1024];
(void) strerror_r(errno, buf, sizeof(buf));
error(std::string("Can't create epoll queue: ") + buf);
error("Can't create epoll queue");
}
struct epoll_event evin;
@@ -419,10 +417,8 @@ bool SocketImpl::poll(const Poco::Timespan& timeout, int mode)
if (epoll_ctl(epollfd, EPOLL_CTL_ADD, sockfd, &evin) < 0)
{
char buf[1024];
(void) strerror_r(errno, buf, sizeof(buf));
::close(epollfd);
error(std::string("Can't insert socket to epoll queue: ") + buf);
error("Can't insert socket to epoll queue");
}
Poco::Timespan remainingTime(timeout);