Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Thu, 14 Mar 2002 18:18:34 -0500
From: Christopher Faylor <cgf@redhat.com>
To: cygwin@cygwin.com
Cc: Pierre.Humblet@ieee.org
Subject: Re: Strange exec behavior
Message-ID: <20020314231834.GA27377@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com, Pierre.Humblet@ieee.org
References: <3C9105D1.9463CCAB@ieee.org> <20020314203818.GD28153@redhat.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20020314203818.GD28153@redhat.com>
User-Agent: Mutt/1.3.23.1i

On Thu, Mar 14, 2002 at 03:38:18PM -0500, Christopher Faylor wrote:
>On Thu, Mar 14, 2002 at 03:19:29PM -0500, Pierre A. Humblet wrote:
>>Is this normal?                     [ please cc: me directly]
>
>Yes.
>
>cgf
>
>>~> ps -W | fgrep /a
>>      506       1     345        430    3 11054 13:49:15 /h/a
>>      506       1     345        430    3 11054 13:49:15 /h/a
>>      506       1     345        430    3 11054 13:49:15 /h/a
>>      506       1     345        430    3 11054 13:49:15 /h/a
>>      506       1     345        430    3 11054 13:49:15 /h/a
>>      506       1     345        430    3 11054 13:49:15 /h/a
>>      506       1     345        430    3 11054 13:49:15 /h/a
>>      506       1     345        430    3 11054 13:49:15 /h/a
>>      506       1     345        430    3 11054 13:49:15 /h/a
>>      506       1     345        430    3 11054 13:49:15 /h/a
>>      506       1     345        430    3 11054 13:49:15 /h/a
>>[Incidentally the WINPIDs are reported incorrectly, but that's
>> a side issue ]

FWIW, I've checked in a fix for the incorrect WINPIDs above.

Also, this question has been asked previously in the mailing list.
There should be a description in the archives.  However if you think
about how exec has to work under cygwin it may be obvious why the
processes stay around.  It's possible to optimize things so that just
two processes need to stay around but that would end up adding a fair
amount of code for this one situation.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

