2014-12-18 18:11 GMT+01:00 Corinna Vinschen <corinna-cyg...@cygwin.com>: > 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. >
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