This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: ps questions
- From: BGINFO4X <bginfo4x at kztsoftware dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 18 Dec 2014 17:57:22 +0100
- Subject: Re: ps questions
- Authentication-results: sourceware.org; auth=none
- References: <CAO2ddnZChb-n9+Z1YEWCFSA=WTaYfkmHdjMZk7Te5JYckUDE+Q at mail dot gmail dot com> <5492EDFC dot 5080608 at gmail dot com>
2014-12-18 16:08 GMT+01:00 Marco Atzeri <marco.atzeri@gmail.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?
>>
>> 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.
Thanks again.
>
> https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86%2Fcygwin%2Fcygwin-1.7.33-1&grep=ps.exe
>
> https://cygwin.com/viewvc/src/winsup/utils/ps.cc?revision=1.38&view=markup
>
> --
> 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
>
--
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