Andrey Repin wrote: > > * https://cygwin.com/cygwin-ug-net/using-cygwinenv.html > Yes, it's in CYGWIN=wincmdln
Thx. So I was tired enough not to spot that option even when there is a keyword "argv" on the page (( > But it's not necessarily accurate. > See the documentation for details. Docs said: (no)wincmdln - if set, the windows complete command line (truncated to ~32K) will be passed on any processes that it creates in addition to the normal UNIX argv list. Defaults to not set. So the presentation is not accurate if the length exceeds 32K. NP )) At least I am not blind at what happens with processes. Tested, it works: CYGWIN=wincmdln emacs-w32 -Q The first process doesn't report its argv, but all children do. The solution of Brian Inglis (of using "ps" or "/proc/*/cmdline") is not viable in situations when processes start and die quickly. I need some tracer, "strace" crashed Emacs & procmon has nice UI. Tnx! On Mon, Nov 2, 2020 at 8:50 AM Andrey Repin <anrdae...@yandex.ru> wrote: > > 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... > -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple