Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <2C08D4EECBDED41184BB00D0B74733420473F0AD@cf-bay-exch-03.cacheflow.com> From: "Karr, David" To: "'cygwin AT cygwin DOT com'" Subject: "recv" and "recvfrom" on blocking sockets Date: Mon, 24 Sep 2001 13:12:09 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" I've checked the FAQ, the User Guide, and the mail archives, and I didn't see anything that addresses this. I have a little client/server application pair that uses pthreads to create two threads, one of which waits on "recv" and the other which waits on "recvfrom". This works fine when I run the server on RH Linux, and the client on either Linux or Cygwin. However, when I run the server on Cygwin, the "recv" call immediately fails with "Invalid argument", and the "recvfrom" immediately gets "Interrupted system call". If the latter is normal behavior, I could code an EINTR-checking loop, but I have a feeling something else is wrong here. I also noticed that if I want to build a code/make system that is portable between the two, on Cygwin I have to create a local archive named "pthread" that is an empty archive. I can accept this. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/