delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/12/10/06:44:04

From: duran AT vdl2 DOT ca (Duran)
Subject: fork() problem with sockets
10 Dec 1997 06:44:04 -0800 :
Message-ID: <199712101431.JAA08175.cygnus.gnu-win32@cobra.vdl2.ca>
Reply-To: "Duran" <duran AT vdl2 DOT ca>
Mime-Version: 1.0
To: <gnu-win32 AT cygnus DOT com>

This is a multi-part message in MIME format.

------=_NextPart_000_0000_01BD0549.AA953AA0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

The Fork()=20

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.=20





------=_NextPart_000_0000_01BD0549.AA953AA0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.71.1008.3"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<P><FONT color=3D#000000 face=3DArial size=3D2>The =
Fork()&nbsp;</FONT>&nbsp;</P>
<P><FONT color=3D#000000 face=3DArial size=3D2>Problem: The fork child =
does not=20
inherate the file descriptors when working whith sockets.</FONT>
<P><FONT color=3D#000000 face=3DArial size=3D2>How to reproduce the =
problem: Just=20
create a socket server, accept a connection and fork, you will notice =
that the=20
child will not be able to use the sockets declared before the=20
forking.&nbsp;</FONT>
<P><FONT color=3D#000000 face=3DArial =
size=3D2></FONT>&nbsp;</BODY></HTML>

------=_NextPart_000_0000_01BD0549.AA953AA0--

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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