Subject: fork/socket, gethostnamebyaddress, wait3
From: [email-masked] (Rene van Leuken)

22 Jun 1997 03:23:59 -0700
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Original-To: [email-masked]
X-Mailer: ELM [version 2.4ME+ PL15 (25)]
Original-Sender: [email-masked]

Subject: fork/socket, gethostnamebyaddr, wait3

We have ported our client/server software to Win95/NT using
the gnuwin32 gcc compiler version b18. We found the following 
problems/bugs:

1) fork/socket: An Unix child process inherits all open file descriptors,
   including any socket descriptor. In the gnuwin32 environment the socket 
   descriptors in the child process,i.e. after a fork are  NOT available.
   Socket descriptors are NOT inherited.

2) gethostnamebyaddr always return 0; In b17 this function was not implemented
   but in b18 it is. The return 0 is still in the code but should be 
   return ptr. (net.cc) (May be Sergey can fix this in one of his new patches?).

3) Wait3 is not implemented. Is there a way around this? I.e. is it possible
   to use waitpid for wait3?

Except these problems, porting was easy. 

Regards,

-- 
Rene van Leuken 		   phone: 3115 - 278 6696
Dimes Design and Test Centre 	   fax:   3115 - 278 7564
Delft University of Technology 	   email: [email-masked]
P.O. Box 5053                      email: [email-masked]
Mekelweg 4, H16 CAS 	   	   email: [email-masked]
2628 CD Delft, The Netherlands     http://www.ddtc.dimes.tudelft.nl/~rene

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