Re: Add pselect, ppoll system calls.

From: jnf
Date: Sun Jun 12 2005 - 20:18:15 EST


Hi.
I realize this is off subject to the mailing list, however its not really
off subject to the thread. What is the suggested method for dealing with
this? i.e. catching sigint which sets a global variable and then having
select() inside the loop, i.e.

while (boolean < 1 ) {
[...]
select(...);
[...]
}

regards,

jnf


On Sun, 12 Jun 2005, Linus Torvalds wrote:

> Date: Sun, 12 Jun 2005 17:26:43 -0700 (PDT)
> From: Linus Torvalds <torvalds@xxxxxxxx>
> To: Alan Cox <alan@xxxxxxxxxxxxxxxxxxx>
> Cc: David Woodhouse <dwmw2@xxxxxxxxxxxxx>,
> Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>, akpm@xxxxxxxx,
> drepper@xxxxxxxxxx
> Subject: Re: Add pselect, ppoll system calls.
>
>
>
> On Sun, 12 Jun 2005, Alan Cox wrote:
> >
> > If glibc has a race why not just fix glibc ?
>
> .. because glibc tries to implement the "pselect()" interfaces that some
> other OS's implement.
>
> Whether that is a good idea or not (it's not) is a different issue, but
> basically it means that apps don't use the longjmp trick exactly because
> they think pselect() works ok.
>
> Linus
> -
> 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/
>
-
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/