X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=sCMiEuqjTW21DTLrle15BRDIcahXzOpuC+aytn/+2+E 135Vy9bD59ov/YlX9jSfT5X056SlbhqBokWUmw40W9ig1K9yflrINhkSEitGLuMj fyFJX8QpYuWowJSsgd1I7xO1dpcZ4bhJSnA1I7NH6UY9/EKgpmlG62QWl2sbsL+4 = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=kegl/cOWlELrgg+hYAK4SkEPxJQ=; b=HsQKpy4cLMWxqab/j K0mYWs0BzwVFl8iNYRGo3fsvED3rtszUWilelZK4/P46xTZAy10vo0FdqpbvLbqc wSymqPwJyyVuM4TZbU7GW+fAO7ZiI9PSEuLn9/6AHSFzIXCJ/Ia/Sq9fCbBRFEOV Wv3Y3qHh1fSSDY2LMf89xDojGg= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Spam-SWARE-Status: No, score=-4.5 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RDNS_NONE,SPF_PASS autolearn=no version=3.3.1 X-Forefront-Antispam-Report: CIP:132.245.2.21;KIP:(null);UIP:(null);IPV:NLI;H:BN1PRD0512HT003.namprd05.prod.outlook.com;RD:none;EFVD:NLI X-SpamScore: -5 X-BigFish: PS-5(z21eIzbb2dI98dI9371I1432Izz1f42h208ch1ee6h1de0h1fdah2073h1202h1e76h1d1ah1d2ah1fc6hzz177df4h17326ah1de097h1de096h8275bhz2fh2a8h668h839h947hd25he5bhf0ah1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh162dh1631h1758h1765h18e1h190ch1946h19b4h19c3h19ceh1ad9h1b0ah1d0ch1d2eh1d3fh1dfeh1dffh1e1dh1f5fh1155h) Received-SPF: pass (mail99-db8: domain of coverity.com designates 132.245.2.21 as permitted sender) client-ip=132.245.2.21; envelope-from=thonermann AT coverity DOT com; helo=BN1PRD0512HT003.namprd05.prod.outlook.com ;.outlook.com ; Message-ID: <51F145E7.3000600@coverity.com> Date: Thu, 25 Jul 2013 11:36:07 -0400 From: Tom Honermann User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: Subject: Re: Process command lines for Cygwin processes no longer viewable in Windows task manager as of Cygwin 1.7.21 References: <51F08F9D DOT 6020606 AT coverity DOT com> <20130725082814 DOT GA5124 AT calimero DOT vinschen DOT de> <51F1265B DOT 1040704 AT cwilson DOT fastmail DOT fm> <51F133E4 DOT 6040506 AT coverity DOT com> <20130725151050 DOT GA6932 AT ednor DOT casa DOT cgf DOT cx> In-Reply-To: <20130725151050.GA6932@ednor.casa.cgf.cx> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-OriginatorOrg: coverity.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% On 07/25/2013 11:10 AM, Christopher Faylor wrote: > On Thu, Jul 25, 2013 at 10:19:16AM -0400, Tom Honermann wrote: >> 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. > > You were relying on a bug in Cygwin. Regardless if this behavior was intentional or not, the ability to retrieve the process command line from non-Cygwin processes is crucial for me. Please work with me on this to come up with a solution. > Older versions of the DLL did not > provide the full command line. It was only after the bug entered into > the source code that it did. Not providing the windows command line is > an optimization for Cygwin programs. As far as I can tell, the command line has been provided to CreateProcess going back at least as far as the Cygwin 1.5.x releases. Given the cost of starting a new process, it seems unlikely that omitting the full command line offers much of a performance improvement. Was there something about the construction of the command line that was particularly expensive? Perhaps that could be optimized instead? >> 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: > > It's not strace that's broken. That's just a simple fix to the DLL. Ok, the user experience is that strace is not working as expected. 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