This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: fork() problem with sockets
- To: "gnu-win32 at cygnus dot com" <gnu-win32 at cygnus dot com>, "'Duran'" <duran at vdl2 dot ca>
- Subject: RE: fork() problem with sockets
- From: Sergey Okhapkin <sos at prospect dot com dot ru>
- Date: Thu, 11 Dec 1997 10:20:42 +0300
Duran wrote:
> Problem: The fork child does not inherate the file descriptors when
working whith sockets.
>
> How to reproduce the problem: Just create a socket server, accept a
connection and fork, you will notice that the child will not be able to use
the sockets declared before the forking.
The problem is Win95 specific. Winsock's socket() call returns
non-inherittable socket handle on W95. Dowload patched cygwin.dll from my
web page.
--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
Looking for a job.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".