Fix inappropriate return value for epoll_create
This commit is contained in:
parent
5f55c930d8
commit
6f82a912e5
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user