delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/31/20:17:02

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <000a01c53658$14130560$0201a8c0@cttcq>
From: "Merlin Ran" <merlinran AT 163 DOT com>
To: <cygwin AT cygwin DOT com>
References: <d2gufc$m8d$1 AT sea DOT gmane DOT org> <20050331140656 DOT GF2495 AT cygbert DOT vinschen DOT de>
Subject: Re: 1.5.13:Is it difficult to make cygwin recycle pids when create new process?
Date: Fri, 1 Apr 2005 09:13:55 +0800
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id j311Gu00007674

----- Original Message ----- 
From: "Corinna Vinschen" <corinna AT vinschen DOT de>
To: <cygwin AT cygwin DOT com>
Sent: Thursday, March 31, 2005 10:06 PM
Subject: Re: 1.5.13:Is it difficult to make cygwin recycle pids when create new process?


> On Mar 31 21:36, Merlin Ran wrote:
> > see:
> > http://sourceware.org/ml/cygwin/2005-03/msg00657.html
> > 
> > When start a new Windows process, the system attempt to recycle a previously
> > used PID, so the maximam PID in the system is low. But when I invoke a
> > command in Cygwin, the PID of new process always increase. It may not be a
> > problem as long as the maximam PID doesn't exceed the limit, but
> > unfortunately it will. As I discovered, my Win2000 Professional system's PID
> > limit is a little more than 17000, many configure script I have run, such as
> > mysql and net-snmp's, aborted because unsuccessfully fork().
> > 
> > Why does Cygwin's fork() behave unlike native Windows, since it is based on
> > CreateProcess()(http://www.cygwin.com/faq/faq_3.html#SEC77)? I'v searched a
> > post on why use two types of
> > PID(http://www.cygwin.com/ml/cygwin/2003-10/msg00139.html), does it matter?
> 
> Doesn't http://www.cygwin.com/ml/cygwin/2003-10/msg00169.html explain it?
> 
No. I learned why using two pids from the post, but it still doesn't explain why winpid is always increasing. Since every process is created by CreateProcess() ultimately, why doesn't it behave alike native windows process, which reuse the pid of previously exited process? After consult msdn online, I haven't found any parameters which can affect the selection of new process's pid. How could cygwin achieve this?

> 
> Corinna
> 
> -- 
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Project Co-Leader          mailto:cygwin AT cygwin DOT com
> Red Hat, Inc.
> 
> --
> 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