diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nSocket/nstack/nstack_module.h | 2 | ||||
-rw-r--r-- | src/nSocket/nstack/nstack_socket.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nSocket/nstack/nstack_module.h b/src/nSocket/nstack/nstack_module.h index 70b838f..00d0343 100644 --- a/src/nSocket/nstack/nstack_module.h +++ b/src/nSocket/nstack/nstack_module.h @@ -46,7 +46,7 @@ extern "C"{ #define NSTACK_EP_FREE_NEED_REF 1 /*when epoll information free, need to wait that stack would not notify event */ #define NSTACK_EP_FREE_NONEED_REF 0 -#define MODULE_NAME_MAX 64 +#define MODULE_NAME_MAX 128 typedef struct __NSTACK_MODULE_KEYS { diff --git a/src/nSocket/nstack/nstack_socket.c b/src/nSocket/nstack/nstack_socket.c index 5e96990..59ab34e 100644 --- a/src/nSocket/nstack/nstack_socket.c +++ b/src/nSocket/nstack/nstack_socket.c @@ -2436,7 +2436,7 @@ nstack_epoll_ctl (int epfd, int op, int fd, struct epoll_event *event) if (!epi) { ep_event.events |= (EPOLLERR | EPOLLHUP); // Check `man epoll_ctl` if you don't understand , smile :) - common_mem_rwlock_read_lock (get_fork_lock ()); /* to ensure that there is no fd to create and close when fork. added by tongshaojun t00391048 */ + common_mem_rwlock_read_lock (get_fork_lock ()); /* to ensure that there is no fd to create and close when fork. */ ret = nsep_epctl_add (ep, fd, &ep_event); common_mem_rwlock_read_unlock (get_fork_lock ()); } |