update fs/vfs/epoll/fs_epoll.c.
Signed-off-by: 石子怡 <z15319797139@163.com>
This commit is contained in:
parent
63f261d239
commit
c099376d69
|
@ -240,7 +240,7 @@ int epoll_ctl(int epfd, int op, int fd, struct epoll_event *ev)
|
||||||
int i;
|
int i;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
(VOID)pthread_mutex_lock(&g_epollMutex);
|
(VOID)pthread_mutex_lock(&g_epollMutex);
|
||||||
epHead = EpollGetDataBuff(epfd);
|
epHead = EpollGetDataBuff(epfd);
|
||||||
if (epHead == NULL) {
|
if (epHead == NULL) {
|
||||||
set_errno(EBADF);
|
set_errno(EBADF);
|
||||||
|
@ -301,7 +301,7 @@ int epoll_ctl(int epfd, int op, int fd, struct epoll_event *ev)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
OUT_RELEASE:
|
OUT_RELEASE:
|
||||||
(VOID)pthread_mutex_unlock(&g_epollMutex);
|
(VOID)pthread_mutex_unlock(&g_epollMutex);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue