This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ps questions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]