From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward103o.mail.yandex.net (forward103o.mail.yandex.net [37.140.190.177]) by sourceware.org (Postfix) with ESMTPS id D05313858009 for ; Mon, 2 Nov 2020 06:50:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D05313858009 Received: from mxback11o.mail.yandex.net (mxback11o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::62]) by forward103o.mail.yandex.net (Yandex) with ESMTP id 022555F81773; Mon, 2 Nov 2020 09:50:03 +0300 (MSK) Received: from myt2-accb38a5c431.qloud-c.yandex.net (myt2-accb38a5c431.qloud-c.yandex.net [2a02:6b8:c00:2e9b:0:640:accb:38a5]) by mxback11o.mail.yandex.net (mxback/Yandex) with ESMTP id iR9ZK2lMPE-o2VWmfJO; Mon, 02 Nov 2020 09:50:02 +0300 Received: by myt2-accb38a5c431.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id kOvQyArl6e-o2HiV1SK; Mon, 02 Nov 2020 09:50:02 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Mon, 02 Nov 2020 06:36:38 -0000 Date: Mon, 2 Nov 2020 09:36:38 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home Reply-To: cygwin@cygwin.com X-Priority: 3 (Normal) Message-ID: <1642805098.20201102093638@yandex.ru> To: Oleksandr Gavenko , cygwin@cygwin.com Subject: Re: procmon doesn't capture cygwin's process arguments In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2020 06:50:08 -0000 Greetings, Oleksandr Gavenko! > I tried to find out what processes emacs-w32 is starting for my custom > TRAMP method. > "strace -f emacs-w32" fails. > I expected to succeed with procmon & its filter " Command/ Process Start". > Unfortunately procmon [1] doesn't report "argv" if a Cygwin executable is > started from a Cygwin executable. If I run a Cygwin app from the Windows > environment it captures positional arguments. > Is there some option to make positional arguments visible to procmon? > I could find it in: > * https://cygwin.com/cygwin-ug-net/using-cygwinenv.html Yes, it's in CYGWIN=wincmdln But it's not necessarily accurate. See the documentation for details. > * https://cygwin.com/cygwin-ug-net/setup-env.html > Please keep my email in CC... > [1] https://docs.microsoft.com/en-us/sysinternals/downloads/procmon -- With best regards, Andrey Repin Monday, November 2, 2020 9:35:15 Sorry for my terrible english...