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: Process command lines for Cygwin processes no longer viewable in Windows task manager as of Cygwin 1.7.21


On 07/25/2013 09:21 AM, Charles Wilson wrote:
On 7/25/2013 4:28 AM, Corinna Vinschen wrote:
On Jul 24 22:38, Tom Honermann wrote:
My suspicion that this started with 1.7.21 is based on Corinna's
comments in http://cygwin.com/ml/cygwin/2013-07/msg00343.html and
other anecdotal evidence of new problems occurring as of that
release.

This is by design now as described in the aforementioned posting.  If
you want to see the command line of a Cygwin application called by
another Cygwin application, see /proc/$pid/cmdline.

Would a patch to restore the previous operation based on a $CYGWIN
variable setting be acceptable?

I think this change should be reverted.

In my case, I need to be able to retrieve the command line for a Cygwin process from a non-Cygwin process. Reading /proc/$pid/cmdline is not an option in that case. I depend on the ability to, for example, differentiate gcc processes that are running based on their command line options.

Note that strace is currently broken as well. Running it against a 'make' invocation:

$ strace make | grep "cmd line"
2532 163533 [main] make 6688 child_info_spawn::worker: pid 6688, prog_arg /usr/bin/g++, cmd line (null)) 2207 158021 [main] g++ 6688 child_info_spawn::worker: pid 2180, prog_arg /usr/lib/gcc/i686-pc-cygwin/4.7.3/cc1plus.exe, cmd line (null)) 1292 680192 [main] g++ 6688 child_info_spawn::worker: pid 3604, prog_arg /usr/lib/gcc/i686-pc-cygwin/4.7.3/../../../../i686-pc-cygwin/bin/as.exe, cmd line (null)) 1274 989508 [main] g++ 6688 child_info_spawn::worker: pid 6176, prog_arg /usr/lib/gcc/i686-pc-cygwin/4.7.3/collect2.exe, cmd line (null)) 2305 385952 [main] collect2 6176 child_info_spawn::worker: pid 6340, prog_arg /usr/lib/gcc/i686-pc-cygwin/4.7.3/../../../../i686-pc-cygwin/bin/ld, cmd line (null))

Note that "cmd line" is now (null) in all cases.

Tom.


--
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]