首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
1.8.2 编译后,启动抱错
1.8.2 编译后启动抱错 编译参数:./configure --enable-async-mysql --enable-async-httpclient 抱错信息: ```shell [2016-03-15 16:01:19 *22012.1] ERROR swoole_fcntl_set_block(:668): fcntl(-733065664, GETFL) failed. Error: Bad file descriptor[9]. [2016-03-15 16:01:19 *22012.1] ERROR swoole_fcntl_set_block(:688): fcntl(-733065664, SETFL, opts) failed. Error: Bad file descriptor[9]. [2016-03-15 16:01:19 @22011.0] ERROR swoole_fcntl_set_block(:668): fcntl(32759, GETFL) failed. Error: Bad file descriptor[9]. [2016-03-15 16:01:19 @22011.0] ERROR swoole_fcntl_set_block(:688): fcntl(32759, SETFL, opts) failed. Error: Bad file descriptor[9]. [2016-03-15 16:01:19 @22011.0] ERROR swReactorEpoll_add(:140): add events[fd=32759#0, type=5, events=1] failed. Error: Bad file descriptor[9]. ``` 源码位置: ```c void swoole_fcntl_set_block(int sock, int nonblock) { int opts, ret; do { opts = fcntl(sock, F_GETFL); } while (opts < 0 && errno == EINTR); if (opts < 0) { swSysError("fcntl(%d, GETFL) failed.", sock); } if (nonblock) { opts = opts | O_NONBLOCK; } else { opts = opts & ~O_NONBLOCK; } do { ret = fcntl(sock, F_SETFL, opts); } while (ret < 0 && errno == EINTR); if (ret < 0) { swSysError("fcntl(%d, SETFL, opts) failed.", sock); } } ```
发布于9年前 · 0 次浏览 · 来自
提问
彼岸
1.8.2 编译后启动抱错 编译参数:./configure --enable-async-mysql --enable-async-httpclient 抱错信息: ```shell [2016-03-15 16:01:19 *22012.1] ERROR swoole_fcntl_set_block(:668): fcntl(-733065664, GETFL) failed. Error: Bad file descriptor[9]. [2016-03-15 16:01:19 *22012.1] ERROR swoole_fcntl_set_block(:688): fcntl(-733065664, SETFL, opts) failed. Error: Bad file descriptor[9]. [2016-03-15 16:01:19 @22011.0] ERROR swoole_fcntl_set_block(:668): fcntl(32759, GETFL) failed. Error: Bad file descriptor[9]. [2016-03-15 16:01:19 @22011.0] ERROR swoole_fcntl_set_block(:688): fcntl(32759, SETFL, opts) failed. Error: Bad file descriptor[9]. [2016-03-15 16:01:19 @22011.0] ERROR swReactorEpoll_add(:140): add events[fd=32759#0, type=5, events=1] failed. Error: Bad file descriptor[9]. ``` 源码位置: ```c void swoole_fcntl_set_block(int sock, int nonblock) { int opts, ret; do { opts = fcntl(sock, F_GETFL); } while (opts < 0 && errno == EINTR); if (opts < 0) { swSysError("fcntl(%d, GETFL) failed.", sock); } if (nonblock) { opts = opts | O_NONBLOCK; } else { opts = opts & ~O_NONBLOCK; } do { ret = fcntl(sock, F_SETFL, opts); } while (ret < 0 && errno == EINTR); if (ret < 0) { swSysError("fcntl(%d, SETFL, opts) failed.", sock); } } ```
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2017-07-19
S
Shiki
1.8.2版本如果设置reactor_num超过CPU核数会出现此问题,新的1.8.3版本已经修复。
赞
0
回复