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
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Stephen Powell <me@privacy.net>
Newsgroups: gmane.os.cygwin
Subject: Re: ps and linking to cygwin.dll
Date: Fri, 26 Apr 2002 06:52:34 +1000
Organization: Hail Eris!
Lines: 30
Message-ID: <ud6wna4bx.fsf@127.0.0.1>
References: <4.3.1.2.20020424123617.02ba16d8@pop.ma.ultranet.com> <4.3.1.2.20020423211751.016e3178@pop.ma.ultranet.com>
 <20020423225102.GA13166@localhost>
 <4.3.1.2.20020423211751.016e3178@pop.ma.ultranet.com>
 <4.3.1.2.20020424123617.02ba16d8@pop.ma.ultranet.com>
 <4.3.1.2.20020424180624.02c26638@pop.ma.ultranet.com>
 <20020424233442.GA17544@localhost>
Reply-To: Stephen_Powell@optusnet.com.au
NNTP-Posting-Host: sdcax76-b035.dialup.optusnet.com.au
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: main.gmane.org 1019768106 19927 210.49.119.35 (25 Apr 2002 20:55:06 GMT)
X-Complaints-To: usenet@main.gmane.org
NNTP-Posting-Date: Thu, 25 Apr 2002 20:55:06 +0000 (UTC)
X-Posting-Agent: Hamster/1.3.23.3
User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2
 (i386-mingw-nt5.0.2195)
Cancel-Lock: sha1:FKg8NGXdFwqBVqQukJVeVhQfakY=

>>>>> "Ryan" == Ryan T Sammartino <ryants@shaw.ca> writes:

    > So, if I see a process in 'ps -a' output that is *not* linked to
    > Cygwin dll, that's a bug?

A process spawned by a Cygwin process will be displayed e.g. (the $ is
the bash prompt)

$ which regedit
/c/winnt/regedit

$ regedit &
[1] 1880

$ ps -a
      PID    PPID    PGID     WINPID  TTY  UID    STIME COMMAND
     1508       1    1508       1508    ?   18   Apr 24 /usr/bin/cygrunsrv
     1664    1508    1508       1772    ?   18   Apr 24 /usr/sbin/cron
      864       1     864        864    0 1000 04:58:43 /gnu/local/bin/ispell
     1592       1    1592       1592    1 1000 06:05:55 /usr/bin/bash
     1880    1592    1880       1880    1 1000 06:41:16 /c/winnt/regedit
     1760    1592    1760       1524    1 1000 06:41:23 /usr/bin/ps


In this example the parent process (PPID) of the Windows registry
editor (regedit) is the bash shell.

-- 
Stephen Powell
stephen_powell@optusnet.com.au



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

