fix: release1.0.1分支解决多进程情况下,pipe的内核操作节点存在使用脏私有字段dev,导致系统概率异常问题
问题场景描述:
(1)进程A使用pipe获取操作fd,然后循环使用poll操作;
(2)kill正在进行poll操作的进程A, pipe的fd会被回收,当pipe的设备节点未注销;
(3)进程B使用pipe获取操作fd,此时获取的内核操作节点为进程A创建的,存在使用进程A的操作节点的私有字段。
解决方案:pipe每次调用如果操作节点存在,就更新私有字段。
master分支已解决该问题。
Signed-off-by: Nwanghao-free <wanghao453@huawei.com>
Showing
想要评论请 注册 或 登录