Poluekt <(E-Mail Removed)> wrote:
> I have two processes connected through Unix domain socket. In the
> "sender" process I am calling select in order to check if sendto call
> will block, because the receiver can't keep pace with the sender. From
> the some reason select _always_ indicates that there will be no
> blocking, but when I call sendto with MSG_DONTWAIT flag, it fails with
> errno equal to EAGAIN.
>
> My question is: why select always marks the socket as ready ?
Are you sure this behaivour is in error?
1) Check your return codes for errors.
2) Run your program through strace (or truss on other platforms) to see
what your system calls are doing.
--
Cameron Kerr
(E-Mail Removed) :
http://nzgeeks.org/cameron/
Empowered by Perl!