delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/03/12/10:00:31

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <47D7EFEC.122C76AE@dessent.net>
Date: Wed, 12 Mar 2008 07:59:56 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Bug: C-prog from Win dies in fork; gdb.exe also won't run
References: <47D4A7E4 DOT 5070509 AT tlinx DOT org> <47D4B7D2 DOT 1F78DADB AT dessent DOT net> <47D4E892 DOT 1090305 AT tlinx DOT org> <47D50BB6 DOT EFB28302 AT dessent DOT net> <47D6056B DOT 6000805 AT tlinx DOT org> <47D610C2 DOT EECE7EE9 AT dessent DOT net> <00b601c8843a$d94fe2c0$2708a8c0 AT CAM DOT ARTIMI DOT COM>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Dave Korn wrote:

>   The native API, to the very best of my knowledge, exports exactly the same
> set of interfaces to every subsystem.  Can you explain exactly what you're
> talking about here?

Microsoft Windows Internals, 4th. Ed (Russinovich & Solomon), p. 60:

> Because POSIX.1 compliance was a mandatory goal for Windows, the 
> operating system was designed to ensure that the required base system 
> support was present to allow for the implementation of a POSIX.1 
> subsystem (such as the fork function, which is implemented in the 
> Windows executive, and the support for hard file links in the Windows 
> file system).

p.394:

> The POSIX subsystem takes advantage of copy-on-write to implement the 
> fork function. Typically, when a UNIX application calls the fork 
> function to create another process, the first thing that the new process 
> does is call the exec function to reinitialize the address space with an 
> executable program. Instead of copying the entire address space on fork, 
> the new process shares the pages in the parent process by marking them 
> copy-on-write.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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