mirror of https://github.com/F-Stack/f-stack.git
Add some log.
This commit is contained in:
parent
03b606ff9b
commit
739ea21764
|
@ -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));
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue