X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; q=dns; s=
	default; b=v5+BjMFx+NIu29eYI/3frHdYt86lp+3hXjd3a/iP4+kP8Y9ZX8IcI
	zU+EhDyRzSI/KdUN/8TMFzy02uvw0B/F+A9kI/C0uKc9NyUG56IcaZo56QXHYjcQ
	z+sYqLcFBBOOv1YvTyB/ma9uew13EioyGHJV9P94qDygttqdb+DbAM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; s=default;
	 bh=j/78avmsBa4d94LvWHrm4FzRdkE=; b=HtlGWYpm0LfpYXPMxR0r23PdXBYN
	MMtcppO3kIb2+P7MYN2raXw/yNZFCKzsoiXptz5rk+J5lJ927hGyqK/3eToHZVn7
	KPNabiKfqDsSpBYc2hjq7bMN8ClohqC9rnExHF42BW+SFxAyv2bsDFeuJcxWF2iU
	nClNSQXTCaAeowM=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-4.6 required=5.0 tests=AWL,BAYES_50 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Thu, 18 Dec 2014 18:11:16 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: ps questions
Message-ID: <20141218171116.GF10824@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <CAO2ddnZChb-n9+Z1YEWCFSA=WTaYfkmHdjMZk7Te5JYckUDE+Q@mail.gmail.com> <5492EDFC.5080608@gmail.com> <CAO2ddnZHs=4GxUJtjgoyTXO2Or3oKzY6Rck=m9Mqfj6DgWUQUg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;	protocol="application/pgp-signature"; boundary="/Kwy1es1GwkEJhNg"
Content-Disposition: inline
In-Reply-To: <CAO2ddnZHs=4GxUJtjgoyTXO2Or3oKzY6Rck=m9Mqfj6DgWUQUg@mail.gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)

--/Kwy1es1GwkEJhNg
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Dec 18 17:57, BGINFO4X wrote:
> 2014-12-18 16:08 GMT+01:00 Marco Atzeri <marco.atzeri@gmail.com>:
> >
> >
> > On 12/18/2014 3:52 PM, Kizito Porta Balany=C3=A0 wrote:
> >>
> >> Hello,
> >>
> >> I can't find where "ps -W" is coded in the procps source files. Is it
> >> there ? is it in cygwin.dll? What are you doing "internally" with the
> >> -W option?
> >>
> >> Another question related is: It is possible to map windows processes
> >> to the /proc filysystem. Any way or hint?

Not without writing lots of new code.  Also, some of the files don't
make sense or can't be filled.

> >> Thanks a lot for your time and thanks for the other answered questions.
> >>
> >> Regards.
> >>
> >
> > ps is part of the cygwin package
>=20
> Yes, you are right, I was confused with the procps package.
>=20
> Another question:
> When I execute a windows program, in the /proc table of the process,
> the cwd and root are <defunct> , is this correct? is it a bug?
>=20
> For example, if I launch notepad & : /proc/4422 :
>=20
> cwd -> <defunct>
> root -> <defunct>
> exe -> is OK.  /cygdrive/c/WINDOWS/system32/notepad
>=20
> This only happens with the native windows aplications.
> Cygwin applications have correct values in cwd and root.

The <defunct> information is fetched from the process itself.  This
requires a living, valid Cygwin process, so the info isn't available for
Windows processes.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--/Kwy1es1GwkEJhNg
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJUkwq0AAoJEPU2Bp2uRE+gwWIP/3COdyG/+5agN85orbLFkbHd
Hyoa8ORkD633XaiQ8qplXm2LaAE9BFQvLmB0/mJjSkWkjy4/GR1rrFfbAjDgQBxM
7UHRj3Z6Kz3nqeNic9bAhulQ7Y3Rqn6+2tVu6rwTMlz0N1wzCES5UV7Zcv2S3rp5
Iuv0hcSEBwI/lmSzDeEHN/E7KYHlqYEq4Jx/wgw9MsnAs1hRydVl9OJAI9aGwfNS
e+3IZZl+s6EDSKnaaKdCba8AkcvE8wayvg4v8G60Km6KjbSPIaeUvT1I1sQJ9c3n
nXAu2LDVIx5Qew9ESfzQfD1TDbgNLq+Rsp+nbeCdB+kDz0FG+/IGQ8lROv4y0bvQ
6IuTeXUBcT3onlcGThFQiVpTdlFBcyqhMlG0KasnwpDm2Cntk4ZGYTs4oU1wAMTG
fYBYssYb/OTIln0f4Mil26h2iBMejPW2cUgoW/2V0Aqt9AQJsWDfuVMcWxP5iGOx
7r5u8gSTLd0hbCN7VPFiQ45gEKw0NgarFf8r9JFY0DlNSaZwQsPr1Cz7wl9kuamN
IBjTxgakQudJ/WxXiqRtEhb+1oIGdAV6LQT7SJ76FZlzWE3tgGt73aFIwC3udG79
fElPdVq1n/D3VT4ZzcndazvseHePZIt5phqw26sWjpDitDXULlhTMb3AWYW1+Ng1
Q+C1I/21EmesTaFXj8u5
=vdSC
-----END PGP SIGNATURE-----

--/Kwy1es1GwkEJhNg--
