On Dec 18 17:57, BGINFO4X wrote: > 2014-12-18 16:08 GMT+01:00 Marco Atzeri <marco.atz...@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. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat
pgpOvIZVtSgla.pgp
Description: PGP signature