James Browning said: >> How about fixing the bug at ithe source rather than patching around it? > I tried and failed then I came up with that. Did you get O_NONBLOCK turned on? Something like this: err = fcntl(sockfd, F_SETFL, O_NONBLOCK); -- These are my opinions. I hate spam.