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

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, or

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

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 unblocked in my code

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

Re: [OT] Interrupting select

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

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

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

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

[OT] Interrupting select.

2001-05-02 Thread Laramie Leavitt
I think that this is slightly off-topic, but I figure that someone here knows the answer or where to point me to the answer. Please respond privately so the entire list is not spamed by the response. I am writing a threaded network daemon using a thread per connection model (I know, it is not

[OT] Interrupting select.

2001-05-02 Thread Laramie Leavitt
I think that this is slightly off-topic, but I figure that someone here knows the answer or where to point me to the answer. Please respond privately so the entire list is not spamed by the response. I am writing a threaded network daemon using a thread per connection model (I know, it is not

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 not

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

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 signals

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; // timeo in select

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 this