Re: sys_paccept: disable paccept() until API design is resolved
From: Evgeniy Polyakov
Date: Wed Sep 17 2008 - 12:52:10 EST
Hi Michael.
On Wed, Sep 17, 2008 at 02:24:32AM +0200, Michael Kerrisk (mtk.manpages@xxxxxxxxxxxxxx) wrote:
> >> accept4(int fd, struct sockaddr *sa, socklen_t *salen, ind flags);
> >
> > The signal set wasn't actually my idea. See:
> >
> > http://marc.info/?l=linux-kernel&m=120909788728078&w=2
>
> [CC=+ Evgeniy Polyakov <johnpol@xxxxxxxxxxx>]
>
> But, what are you trying to say in pointing out that this wasn't your idea?
I asked to put signal mask there to be able to siplify life of those who
use accept() and signals. It is not 1005 _required_, but just like it is
not required to be in ppoll(). It is an optimization which should allow
to block signals during code execution without lots of additional steps
(like disabling/enabling them around the call via additional syscalls).
--
Evgeniy Polyakov
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/