[PATCH] winsup: enable maintainer mode support

2022-02-28 Thread Mike Frysinger
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 --- a/winsup/configure.ac +++ b/winsup/configure.ac @@ -13,6

[PATCH] Cygwin: pty: Isolate CTRL_C_EVENTs between ptys.

2022-02-28 Thread Takashi Yano
- With this patch, unique invisible consoles are created for each pty to isolate CTRL_C_EVENTs between ptys. This is necessary by Ctrl-C handling in fhandler_termios::process_sigs() for non-cygwin apps started in pty if the pseudo console is disabled. --- winsup/cygwin/fhandler_termios.cc |

[PATCH] Cygwin: console: Improve the code to avoid typeahead key swapping.

2022-02-28 Thread Takashi Yano
- The commit "Cygwin: console: Prevent the order of typeahead input from swapped." did not fully resolve the issue. If keys are typed during input buffer fix, the order of key event may be swapped. This patch fixes the issue again. --- winsup/cygwin/fhandler_console.cc | 75

Re: [PATCH 0/2] Provide virtual /dev/fd and /dev/{stdin, stdout, stderr} symlinks

2022-02-28 Thread Corinna Vinschen
On Feb 28 10:24, Corinna Vinschen wrote: > On Feb 25 16:46, Johannes Schindelin wrote: > > On Tue, 22 Feb 2022, Corinna Vinschen wrote: > > > On Feb 21 14:36, Johannes Schindelin wrote: > > > > If there is appetite for it, I wonder whether we should do something > > > > similar > > > > for

Re: [PATCH v2] Cygwin: pinfo: Fix exit code for non-cygwin apps which reads console.

2022-02-28 Thread Corinna Vinschen
On Feb 28 18:32, Takashi Yano wrote: > On Mon, 28 Feb 2022 10:21:32 +0100 > Corinna Vinschen wrote: > > Hi Takashi, > > > > On Feb 27 09:46, Takashi Yano wrote: > > > - The recent commit "Cygwin: pinfo: Fix exit code when non-cygwin app > > > exits by Ctrl-C." did not fix enough the issue. If a

Re: [PATCH 2/2] Cygwin: Drop use of loadlib.h in regtool

2022-02-28 Thread Corinna Vinschen
On Feb 26 16:40, Jon Turney wrote: > Link directly with RegDeleteKeyExW(), available since Vista. > > (It's unclear the LoadLibrary wrapper was ever doing anything useful > here, as (i) DLL lookup in PATH was avoided as advapi32 is already > loaded into the process, and (ii) advapi32 is a 'known

Re: [PATCH 0/2] Drop pointless loadlib.h use in utilities

2022-02-28 Thread Corinna Vinschen
On Feb 26 16:40, Jon Turney wrote: > The only remaining uses of loadlib.h are in cygcheck and strace, where it's > used to load cygwin1.dll in both. > > Things could be further simplified, but it's probably worth keeping it > around in it's present form since it's quite likely that >

Re: [PATCH v2] Cygwin: pinfo: Fix exit code for non-cygwin apps which reads console.

2022-02-28 Thread Takashi Yano
On Mon, 28 Feb 2022 10:21:32 +0100 Corinna Vinschen wrote: > Hi Takashi, > > On Feb 27 09:46, Takashi Yano wrote: > > - The recent commit "Cygwin: pinfo: Fix exit code when non-cygwin app > > exits by Ctrl-C." did not fix enough the issue. If a non-cygwin app > > is reading the console, it

Re: [PATCH 0/2] Provide virtual /dev/fd and /dev/{stdin, stdout, stderr} symlinks

2022-02-28 Thread Corinna Vinschen
On Feb 25 16:46, Johannes Schindelin wrote: > Hi Corinna, > > On Tue, 22 Feb 2022, Corinna Vinschen wrote: > > > On Feb 21 14:36, Johannes Schindelin wrote: > > > These symbolic links are crucial e.g. to support process substitution > > > (Bash's > > > very nice `<(SOME-COMMAND)` feature). > >

Re: [PATCH v2] Cygwin: pinfo: Fix exit code for non-cygwin apps which reads console.

2022-02-28 Thread Corinna Vinschen
Hi Takashi, On Feb 27 09:46, Takashi Yano wrote: > - The recent commit "Cygwin: pinfo: Fix exit code when non-cygwin app > exits by Ctrl-C." did not fix enough the issue. If a non-cygwin app > is reading the console, it will not return STATUS_CONTROL_C_EXIT > even if it is terminated by