Fix inappropriate return value for epoll_create

This commit is contained in:
Bert Belder 2012-09-06 05:52:24 +02:00
parent 5f55c930d8
commit 6f82a912e5

View File

@ -87,7 +87,7 @@ epoll_t epoll_create() {
/* thread-safe at the moment. */
if (!epoll__initialized) {
if (epoll__initialize() < 0)
return -1;
return NULL;
epoll__initialized = 1;
}