Re: Values for SigBlk and SigIgn are zero in /proc/$$/status

2022-03-01 Thread Ken SATO
Tue, 1 Mar 2022 20:46:54 +0100 Corinna Vinschen wrote: > I had a few spare cycles today so I took a stab at it and implemented > it. I uploaded new developer snapshots to https://cygwin.com/snapshots/, > please give it a try. Thank you for providing the snapshot. I was able to get the values of

Re: Possible phantom control-key state moving from windows to cygwin

2022-03-01 Thread Eric Adams
On Tue, Mar 1, 2022 at 7:46 PM Takashi Yano wrote: > > On Tue, 1 Mar 2022 19:17:50 -0600 > Eric Adams wrote: > > Hi, and thanks for all the wonderful work. > > > > I have noticed "recently" that when I move from using a graphical > > windows application (e.g. VeraCrypt) to typing in a cygwin

[PATCH] Cygwin: console: Fix a bug from comparison between int and DWORD.

2022-03-01 Thread Takashi Yano
--- winsup/cygwin/fhandler_console.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 7e51ea19e..7693ab8e4 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@

Re: Possible phantom control-key state moving from windows to cygwin

2022-03-01 Thread Takashi Yano
On Tue, 1 Mar 2022 19:17:50 -0600 Eric Adams wrote: > Hi, and thanks for all the wonderful work. > > I have noticed "recently" that when I move from using a graphical > windows application (e.g. VeraCrypt) to typing in a cygwin mintty > window, the first character typed may think that the control

Re: [PATCH] winsup: enable maintainer mode support

2022-03-01 Thread Mike Frysinger
On 01 Mar 2022 14:26, Jon Turney wrote: > On 01/03/2022 00:54, Mike Frysinger wrote: > > We do this in newlib & libgloss, so enable in winsup too for consistency. > > --- > > winsup/configure.ac | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/winsup/configure.ac

Possible phantom control-key state moving from windows to cygwin

2022-03-01 Thread Eric Adams
Hi, and thanks for all the wonderful work. I have noticed "recently" that when I move from using a graphical windows application (e.g. VeraCrypt) to typing in a cygwin mintty window, the first character typed may think that the control key is active. This is often not a problem, unless the first

[PATCH] Cygwin: console: Prevent special keys processing from drop.

2022-03-01 Thread Takashi Yano
- There was a potential risk to drop special key processing when process_input_messsage() is called intermittently. This patch fixes the issue. --- winsup/cygwin/fhandler.h | 2 ++ winsup/cygwin/fhandler_console.cc | 22 +- 2 files changed, 15 insertions(+), 9

[PATCH] Cygwin: console: Stop to create struct instance which is not needed.

2022-03-01 Thread Takashi Yano
- In fhandler_console::cons_master_thread(), a struct which has only a static function is used. In this case, struct instance is not necessary. So with this patch, the static function is invoked without creating instance. --- winsup/cygwin/fhandler_console.cc | 18 +- 1 file

Re: Typed characters are mis-ordered when CPU usage is high

2022-03-01 Thread Takashi Yano
Hi Orgad, On Sun, 27 Feb 2022 23:53:03 +0900 Takashi Yano wrote: > On Sun, 27 Feb 2022 16:39:24 +0200 > Orgad Shaneh wrote: > > Hi, > > > > I'm using cygwin runtime 3.3.4-2. > > > > When a foreground job is running, and the general CPU usage of the > > machine is high, characters are

Re: Cygwin/X newbie here - about xfce4

2022-03-01 Thread Bob Bernstein
Since the FAQ tells me not to expect ("In your dreams, fella, in your DREAMS!") replies on this list, I thought I'd provide one myself, and, to make it even more um attractive, I am using the email address that I subscribed with. On Sun, 27 Feb 2022, Bob Bernstein wrote: 1. Is there what in

Cygwin sysconf.cc

2022-03-01 Thread Brian Inglis
Interested in a patch for sysconf.cc to return: _SC_TZNAME_MAX => TZNAME_MAX and _SC_MONOTONIC_CLOCK => _POSIX_MONOTONIC_CLOCK? -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader

Re: Values for SigBlk and SigIgn are zero in /proc/$$/status

2022-03-01 Thread Corinna Vinschen
On Mar 1 12:06, Corinna Vinschen wrote: > On Mar 1 14:35, Ken SATO wrote: > > Hello, > > > > When I run the following command, the values for SigBlk and SigIgn are zero. > > How can I get the correct value? > > You can't. We don't have the information readily available without > asking the

Re: [PATCH] winsup: enable maintainer mode support

2022-03-01 Thread Jon Turney
On 01/03/2022 00:54, Mike Frysinger wrote: We do this in newlib & libgloss, so enable in winsup too for consistency. --- winsup/configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/winsup/configure.ac b/winsup/configure.ac index b8d2100dbe90..6c6e1cb0893a 100644 ---

[PATCH] Cygwin: pty: Rename some functions/variables with the name *pcon*.

2022-03-01 Thread Takashi Yano
- With this patch, some pty functions/variables have been renamed so that the name *pcon* is not used for those that are called even when the pseudo console is not active. --- winsup/cygwin/fhandler.h | 14 +- winsup/cygwin/fhandler_tty.cc | 314 ++

Re: Values for SigBlk and SigIgn are zero in /proc/$$/status

2022-03-01 Thread Corinna Vinschen
On Mar 1 14:35, Ken SATO wrote: > Hello, > > When I run the following command, the values for SigBlk and SigIgn are zero. > How can I get the correct value? You can't. We don't have the information readily available without asking the process itself. While we have a communication mechanism in

[PATCH] Cygwin: pty: Reorganize the code path of setting up and closing pcon.

2022-03-01 Thread Takashi Yano
- This patch reorganizes the code path of setting-up and cleaning-up of the pseudo console to improve readability and maintainability of pty code. --- winsup/cygwin/fhandler.h | 10 +- winsup/cygwin/fhandler_termios.cc | 2 +- winsup/cygwin/fhandler_tty.cc | 283

[PATCH] Cygwin: pty: Avoid cutting the branch the pty master is sitting on.

2022-03-01 Thread Takashi Yano
- When Ctrl-C terminates a non-cygwin process on a pseudo console, pty master attaches to the pseudo console first, and send CTRL_C_EVENT. If the non-cygwin process closes the pseudo console before the pty master calls FreeConsole(), the pty master process will crash. With this patch, pty