Skip to content
Permalink
Browse files

1.add root Makefile Flag '-lrt' 2.in function 'epoll_ctl' changesocke…

…t->id to sockid
  • Loading branch information...
BinVicent committed Jun 14, 2018
1 parent 5114761 commit c7ff808d1f9a160fd1559564a3ef40619338f72c
Showing with 2 additions and 2 deletions.
  1. +1 −1 Makefile
  2. +1 −1 src/nty_epoll_rb.c
@@ -3,7 +3,7 @@ CC = gcc
#CC = /usr/bin/gcc-5
SUB_DIRS = app/ src/
BIN = nty_stack
FLAG = -lpthread -lhugetlbfs -g -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -Wno-unused-function -I $(ROOT_DIR)/include
FLAG = -lpthread -lhugetlbfs -lrt -g -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -Wno-unused-function -I $(ROOT_DIR)/include

ROOT_DIR = $(shell pwd)
BIN_DIR = $(ROOT_DIR)/bin
@@ -142,7 +142,7 @@ int epoll_ctl(int epid, int op, int sockid, struct epoll_event *event) {
struct _nty_socket *epsocket = tcp->fdtable->sockfds[epid];
//struct _nty_socket *socket = tcp->fdtable->sockfds[sockid];

nty_trace_epoll(" epoll_ctl --> 1111111:%d, sockid:%d\n", epsocket->id, socket->id);
nty_trace_epoll(" epoll_ctl --> 1111111:%d, sockid:%d\n", epsocket->id, sockid);
if (epsocket->socktype == NTY_TCP_SOCK_UNUSED) {
errno = -EBADF;
return -1;

0 comments on commit c7ff808

Please sign in to comment.
You can’t perform that action at this time.