Re: [OT] Interrupting select

2001-05-06 Thread Stephen Wille Padnos
"Peter T. Breuer" wrote: [snip]> um, shouldn't you be testing for res==-1, as well? > > specifically that condition and errno==EINTR is how I'd expect > > signals to effect the loop... [snip] > I assumed that "error" is something like trying to watch for a > negative number or zero descriptors

Re: [OT] Interrupting select.

2001-05-04 Thread Olaf Dietsche
Hi, "Peter T. Breuer" <[EMAIL PROTECTED]> writes: > "A month of sundays ago Alan Cox wrote:" > > > What IS the magic combination that makes select interruptible > > > by honest-to-goodness non-blocked signals! > > man > > > > [seriously man sigaction] > > Equally seriously .. all signals are u

Re: [OT] Interrupting select.

2001-05-02 Thread Alan Cox
> > [seriously man sigaction] > Equally seriously .. all signals are unblocked in my code and always [see man signaction] > struct sigaction sa =3D { {sighandler}, {{0}}, SA_RESTART, N= subtle hint> ^^ > - To unsubscribe from

Re: [OT] Interrupting select

2001-05-02 Thread Peter T. Breuer
"Mark Hahn wrote:" > > while (1) { > > int res = select(n,rfds,wfds,efds,&timeout); > > if (res > 0) > > return res;// data or error is expected > > if (res == 0) { > > return -ETIME; // tim

Re: [OT] Interrupting select.

2001-05-02 Thread Peter T. Breuer
"A month of sundays ago Alan Cox wrote:" > > What IS the magic combination that makes select interruptible > > by honest-to-goodness non-blocked signals! > man > > [seriously man sigaction] Equally seriously .. all signals are unblocked in my code and always have been. The processes receive sign

Re: [OT] Interrupting select.

2001-05-02 Thread Alan Cox
> What IS the magic combination that makes select interruptible > by honest-to-goodness non-blocked signals! man [seriously man sigaction] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.

Re: [OT] Interrupting select.

2001-05-02 Thread Peter T. Breuer
"A month of sundays ago Laramie Leavitt wrote:" > I think that this is slightly off-topic, but I figure that I'll second this one (waaay off topic for the kernel list, but ...) > someone here knows the answer or where to point me to the > answer. Please respond privately so the entire list is n