Re: Linux epoll(7) patch

看板FB_current作者時間12年前 (2013/08/06 03:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串8/8 (看更多)
On 08/05/2013 08:39, Mateusz Guzik wrote: > What happens to fd after the fork? Is it closed or simply remains > non-functional? > > If the former, I suggest the patch is altered to leave fd with badfdops > in place so that epoll users get less surprised. I will try to alter it this way. However, there is no easy way of testing such case, apart from compiling specially crafted linux program. Also forking after poll is a marginal case. Doubt it ever matters in practice. I found two more problems with the patch: epoll_wait treats timeout as if it was in microseconds, when it is in milliseconds. Also epoll_wait doesn't check for the special case of timeout=-1. I corrected both issues. Will do additional testing, and will submit PR with an updated patch when done. Yuri _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1H__sojc (FB_current)
文章代碼(AID): #1H__sojc (FB_current)