delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/28/11:10:58

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
Date: Thu, 28 Apr 2005 11:02:58 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Help understanding process tree
Message-ID: <20050428150258.GB13295@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <4270F2F5 DOT 5010000 AT agilent DOT com>
Mime-Version: 1.0
In-Reply-To: <4270F2F5.5010000@agilent.com>
User-Agent: Mutt/1.5.8i

On Thu, Apr 28, 2005 at 07:28:05AM -0700, Earl Chew wrote:
>I'm working on a cygwin problem and have been looking at the Win32
>process tree structure using Process Explorer from Sysinternals:
>
>http://www.sysinternals.com/ntw2k/freeware/procexp.shtml
>
>I'd like help understanding why Process Explorer shows cygwin
>child processes as orphans, but win32 child processes as children.
>
>How is this so?
>
>For example, if I start bash, then start cmd /c dir, I will see:
>
>bash
>  bash
>    cmd /c dir
>
>My reading of the code is that the 2nd bash is the fork-stub that is
>waiting for cmd to complete.
>
>Now, if I start sleep 30, I will see:
>
>bash
>sleep 30

Right.  cmd is a non-cygwin program so it needs a cygwin stub to handle
being "execed".  sleep is a cygwin program and does not require any
hand holding.

cgf

--
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