Re: Problem with socketpair , AF_UNIX and select call - can anybody through any light on this!
- From: Miles Sabin <miles@xxxxxxxxxxxxxx>
- Date: Fri, 12 Oct 2007 11:36:34 +0100
Andy Green wrote,
Why don't you try removing the O_NONBLOCK since you test with
select...
Never, ever, do that ... select only returns a hint that an IO operation
might succeed, not a guarantee (google for "spurious wakeup"), hence a
subsequent read/write might block if the descriptor isn't set to
O_NONBLOCK, and that's almost always not what's wanted or expected.
Cheers,
Miles
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
- Follow-Ups:
- References:
- Problem with socketpair , AF_UNIX and select call - can anybody through any light on this!
- From: Howard Wilkinson
- Re: Problem with socketpair , AF_UNIX and select call - can anybody through any light on this!
- From: Howard Wilkinson
- Re: Problem with socketpair , AF_UNIX and select call - can anybody through any light on this!
- From: Andy Green
- Problem with socketpair , AF_UNIX and select call - can anybody through any light on this!
- Prev by Date: Re: Formatting a mail
- Next by Date: Re: Formatting a mail
- Previous by thread: Re: Problem with socketpair , AF_UNIX and select call - can anybody through any light on this!
- Next by thread: Re: Problem with socketpair , AF_UNIX and select call - can anybody through any light on this!
- Index(es):
Relevant Pages
|