Add some log.

This commit is contained in:
fengbojiang 2023-04-12 12:03:34 +08:00
parent 03b606ff9b
commit 739ea21764
2 changed files with 2 additions and 0 deletions

View File

@ -168,6 +168,7 @@ int main(int argc, char * argv[])
}
epfd = epoll_create(0);
printf("epfd:%d\n", epfd);
if (epfd <= 0) {
printf("ff_epoll_create failed, errno:%d, %s\n",
errno, strerror(errno));

View File

@ -107,6 +107,7 @@ void *loop(void *arg)
}
epfd = epoll_create(0);
printf("thread %d, epfd:%d\n", thread_id, epfd);
if (epfd <= 0) {
printf("thread %d, ff_epoll_create failed, errno:%d, %s\n",
thread_id, errno, strerror(errno));