delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT 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:mime-version:in-reply-to:references:date | |
:message-id:subject:from:to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=LBSodUlgi7cdu9yh | |
JMCnUkFimJE32e43696Z9BRHnMSQWKVwGuu2UQnaEIcpPwNCiCSbSbCPmVBSr24M | |
NYJlt+0kBESLJUYExs/pEVZSF2xCmf2JJyn7M2T8GL79C8W4xpumek+v1vUIEaNN | |
wZzrX9b/k15I+VT6Q+3WP2ZBNfs= | |
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:mime-version:in-reply-to:references:date | |
:message-id:subject:from:to:content-type | |
:content-transfer-encoding; s=default; bh=YjHu9w4Z1R/8xlRWeEri9a | |
fdk+M=; b=AvsDL4f55Idt2+rt3mVkE18CAQZlk3kNb3UEjS5OP2Uc1aexTLnIoX | |
9Qao6PpVbYbhhTRBVIdWGV3KxNSYOYlDBuj1vyzfXfVY6XckRBL3kJWTJbbJdTxE | |
2ue099uM5lGp5MFPEUew+c+wpMEx2XniIlSEeIS/ODdZ5FDHb23yg= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
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 |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-1.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 |
X-HELO: | mail-qg0-f44.google.com |
MIME-Version: | 1.0 |
X-Received: | by 10.224.74.132 with SMTP id u4mr5876905qaj.61.1418925400223; Thu, 18 Dec 2014 09:56:40 -0800 (PST) |
In-Reply-To: | <20141218171116.GF10824@calimero.vinschen.de> |
References: | <CAO2ddnZChb-n9+Z1YEWCFSA=WTaYfkmHdjMZk7Te5JYckUDE+Q AT mail DOT gmail DOT com> <5492EDFC DOT 5080608 AT gmail DOT com> <CAO2ddnZHs=4GxUJtjgoyTXO2Or3oKzY6Rck=m9Mqfj6DgWUQUg AT mail DOT gmail DOT com> <20141218171116 DOT GF10824 AT calimero DOT vinschen DOT de> |
Date: | Thu, 18 Dec 2014 18:56:40 +0100 |
Message-ID: | <CAO2ddnY_rFHmXjE=rjdqCLw=N+bcHfRb-p17Cn3CHi6AbP40Og@mail.gmail.com> |
Subject: | Re: ps questions |
From: | BGINFO4X <bginfo4x AT kztsoftware DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id sBIHut9V017105 |
2014-12-18 18:11 GMT+01:00 Corinna Vinschen <corinna-cygwin AT cygwin DOT com>: > On Dec 18 17:57, BGINFO4X wrote: >> 2014-12-18 16:08 GMT+01:00 Marco Atzeri <marco DOT atzeri AT gmail DOT com>: >> > >> > >> > On 12/18/2014 3:52 PM, Kizito Porta BalanyĆ 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 >> >> Yes, you are right, I was confused with the procps package. >> >> 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? >> >> For example, if I launch notepad & : /proc/4422 : >> >> cwd -> <defunct> >> root -> <defunct> >> exe -> is OK. /cygdrive/c/WINDOWS/system32/notepad >> >> 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. > Hello again, forgive me if this is stupid: If any cygwin process has the values cwd=/proc/$PID root=/ Instead of fetching the information, you can "hardcode" the values. Isn't it? Thanks. > Corinna > > -- > Corinna Vinschen Please, send mails regarding Cygwin to > Cygwin Maintainer cygwin AT cygwin DOT com > Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |