Subject: RE: accept() fails?
From: [email-masked]

9 Jul 1997 18:32:41 -0700
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Original-To: [email-masked]
Original-CC: [email-masked], [email-masked]
Original-Sender: [email-masked]

Hi Jeff, you wrote:

: The code below, compiled for Linux, works as expected.  Compiled
: for b18 cygwin32 immediately returns -1 from the call to accept.

Initializing should help. I'm astonished that it worked under Linux!

:   int tmp;

    tmp = sizeof(sockaddr);

:   if ((nfd=accept(fd, (struct sockaddr *) &sockaddr, &tmp)) < 0) {

Bye, Heribert ([email-masked])
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".