Internal scheduler initialization cannot return NULL anymore.
[silc.git] / lib / silcutil / unix / silcunixschedule.c
index df080730f30cfc48965b8a972c87f0891c8ae266..9a4ae9a49a192c1f507055bed2d9d443773d7a6c 100644 (file)
@@ -338,8 +338,10 @@ void *silc_schedule_internal_init(SilcSchedule schedule,
 
 #if defined(HAVE_EPOLL_WAIT)
   internal->epfd = epoll_create(4);
-  if (internal->epfd < 0)
+  if (internal->epfd < 0) {
+    SILC_LOG_ERROR(("epoll_create() failed: %s", strerror(errno)));
     return NULL;
+  }
   internal->fds = silc_calloc(4, sizeof(*internal->fds));
   if (!internal->fds) {
     close(internal->epfd);