Re: Problem with socketpair , AF_UNIX and select call - can anybody through any light on this!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Howard Wilkinson wrote:
I wanted to add a socketpair connection from the master process to the
servers which implement the actual functionality. I created the
socketpair, set both ends non-blocking and added it to the select set
of fd's. I get an immediate return saying that the socket is ready to
read but when I issue a recv I get -1 (EAGAIN). Nothing I have tried
sets the required behaviour of only returning when there is 'real'
data to read.
You're probably better off asking on a Posix programming list than
here. Wherever you ask, though, you should post the code in question,
or code that demonstrates the problem in a state that can be compiled
and verified by others. While you've described what you think you've
done, you haven't given enough information for us to do anything but
guess at the problem.
[Index of Archives]
[Current Fedora Users]