[PATCH] Cygwin: pty: Fix handle leak regarding attach_mutex.

2021-10-09 Thread Takashi Yano
- If the process having master pty opened is forked, attach_mutex fails to be closed when master is closed. This patch fixes the issue. --- winsup/cygwin/fhandler_console.cc | 2 +- winsup/cygwin/fhandler_tty.cc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [PATCH] Cygwin: Make native clipboard layout same for 32- and 64-bit

2021-10-09 Thread Ken Brown
On 10/9/2021 10:29 AM, Jon Turney wrote: On 07/10/2021 06:22, Mark Geisert wrote: > The cygutils package has two programs, putclip and getclip, that also > depend on the layout of the cygcb_t.  At present they have duplicate > defs of struct cygcb_t defined here as no Cygwin header provides

Re: [PATCH] Cygwin: Make native clipboard layout same for 32- and 64-bit

2021-10-09 Thread Jon Turney
On 07/10/2021 06:22, Mark Geisert wrote: > The cygutils package has two programs, putclip and getclip, that also > depend on the layout of the cygcb_t. At present they have duplicate > defs of struct cygcb_t defined here as no Cygwin header provides it. This struct should maybe be in

Re: [PATCH] Cygwin: Make native clipboard layout same for 32- and 64-bit

2021-10-09 Thread Ken Brown
On 10/8/2021 5:52 AM, Takashi Yano wrote: How about simply just: diff --git a/winsup/cygwin/fhandler_clipboard.cc b/winsup/cygwin/fhandler_clipboard.cc index ccdb295f3..d822f4fc4 100644 --- a/winsup/cygwin/fhandler_clipboard.cc +++ b/winsup/cygwin/fhandler_clipboard.cc @@ -28,9 +28,10 @@