delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/24/16:10:37

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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" <david DOT karr AT cacheflow DOT com>
To: "'cygwin AT cygwin DOT com'" <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)

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019