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