more descriptive error messages when epoll fails

@mike_m: should we replace this with strerror_r implementation?


SVN revision: 56247
This commit is contained in:
Mike Blumenkrantz 2011-01-20 22:37:57 +00:00
parent 93d5b87e0a
commit c8b8806b29
1 changed files with 2 additions and 1 deletions

View File

@ -767,7 +767,8 @@ ecore_main_fd_handler_add(int fd, Ecore_Fd_Handler_Flags flags, Ecore_Fd_Cb func
fdh->flags = flags;
if (_ecore_main_fdh_poll_add(fdh) < 0)
{
ERR("Failed to add poll on fd %d (errno = %d)!", fd, errno);
int err = errno;
ERR("Failed to add poll on fd %d (errno = %d: %s)!", fd, err, strerror(err));
free(fdh);
return NULL;
}