Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!rice!sun-spots-request From: mea@sparta.com (Mike Anderson) Newsgroups: comp.sys.sun Subject: EINTR error on socket recv call Keywords: Miscellaneous Message-ID: <1990Oct7.223900.28474@rice.edu> Date: 7 Oct 90 21:30:00 GMT Sender: sun-spots-request@rice.edu Organization: Sun-Spots Lines: 18 Approved: Sun-Spots@rice.edu Originator: spots@walhalla.rice.edu X-Sun-Spots-Digest: Volume 9, Issue 331, message 19 I am running some socket code on a SunOS 4.1 machine (3/60) and I'm getting a really strange errno on a recv call. The errno is EINTR which indicates that an interrupt occured during my recv system call. Now, when I use sigpending to try and find which signal caused the interrupt, it returns a 0 (i.e., no signals blocked or pended). I do have signal handlers for SIGPIPE, SIGINT and SIGALRM in my code, but none of them show any recent activity. I have tried to use sigsetmask (with all 1's in desperation) to block any interrupts, but I still get the EINTR errno on the recv call. This same read functions fine for several calls and then gives me this error when I'm closing things off. Does anyone have any idea what's going on and how I can fix it or disable it? Thanks for any clues, Mike Anderson "It is useless for sheep to pass resolutions in favor SPARTA, Inc. of vegetarianism while wolves remain of a different mea@sparta.com opinion." (703) 448-0210 William R. Inge, D.D. 1860-1954