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 18:56:40 +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> <CAO2ddnZHs=4GxUJtjgoyTXO2Or3oKzY6Rck=m9Mqfj6DgWUQUg at mail dot gmail dot com> <20141218171116 dot GF10824 at calimero dot vinschen dot de>
2014-12-18 18:11 GMT+01:00 Corinna Vinschen <corinna-cygwin@cygwin.com>:
> 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à 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