Re: kern/175674: sem_open() should use O_EXLOCK with open() inst

看板FB_bugs作者時間12年前 (2013/04/27 13:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串12/13 (看更多)
The following reply was made to PR kern/175674; it has been noted by GNATS. From: Eitan Adler <lists@eitanadler.com> To: bug-followup <bug-followup@freebsd.org> Cc: Subject: Re: kern/175674: sem_open() should use O_EXLOCK with open() instead of a separate flock() call Date: Sun, 3 Feb 2013 21:30:28 -0500 ---------- Forwarded message ---------- From: Eitan Adler <lists@eitanadler.com> Date: 3 February 2013 20:52 Subject: Re: kern/175674: sem_open() should use O_EXLOCK with open() instead of a separate flock() call To: Giorgos Keramidas <keramida@freebsd.org>, Jilles Tjoelker <jilles@stack.nl> Cc: freebsd-bugs@freebsd.org On 3 February 2013 16:00, Giorgos Keramidas <keramida@freebsd.org> wrote: > The following reply was made to PR kern/175674; it has been noted by GNATS. > > The best way to fix this is in kern_openat() in the kernel but this > > might cause compatibility issues. > > Not sure if there would be serious compatibility problems if open() would > automatically restart instead of returning EINTR. It definitely seems a rather > intrusive change though. I can not see major application breakage should open(3) be changed. That said, I am confused by jilles' comment: http://pubs.opengroup.org/onlinepubs/000095399/functions/open.html open(3) is permitted to return EINTR. -- Eitan Adler -- Eitan Adler _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
文章代碼(AID): #1HUrkIt3 (FB_bugs)
討論串 (同標題文章)
完整討論串 (本文為第 12 之 13 篇):
文章代碼(AID): #1HUrkIt3 (FB_bugs)