]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: pty: Stop closing and recreating attach_mutex.
authorTakashi Yano <takashi.yano@nifty.ne.jp>
Thu, 13 Jan 2022 10:44:43 +0000 (19:44 +0900)
committerTakashi Yano <takashi.yano@nifty.ne.jp>
Fri, 14 Jan 2022 14:11:01 +0000 (23:11 +0900)
commit3af461092e7ee9b76f3a1c18a6d95ed6e226df81
tree11e9cfed24f52f89686c9f27d52738e5856b05c4
parent4f490c4cef8fd527642dbb5ea5373b373193a49b
Cygwin: pty: Stop closing and recreating attach_mutex.

- Closing attach_mutex and recreating it causes the race issue
  between pty and console codes. With this patch, attach_mutex
  is created only once in a process which opens pty, and never
  closed in order to avoid this issue.

Addresses:
  https://cygwin.com/pipermail/cygwin-developers/2021-December/012548.html
winsup/cygwin/fhandler.h
winsup/cygwin/fhandler_console.cc
winsup/cygwin/fhandler_tty.cc
winsup/cygwin/select.cc
This page took 0.032777 seconds and 5 git commands to generate.