]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: pty, console: Fix deadlock in GDB regarding mutex.
authorTakashi Yano <takashi.yano@nifty.ne.jp>
Thu, 13 Jan 2022 09:16:31 +0000 (18:16 +0900)
committerTakashi Yano <takashi.yano@nifty.ne.jp>
Fri, 14 Jan 2022 14:10:47 +0000 (23:10 +0900)
commitaa49985245e4e5b278778b0a47f6ce83cceb4ad4
tree806f3df1039ebcd9baf0ded22eaa122e3b97642d
parent7e8031a5fd356f205e08a3297d8da83f42e6b8ae
Cygwin: pty, console: Fix deadlock in GDB regarding mutex.

- GDB inferior may be suspended while the inferior grabs mutex.
  This causes deadlock in terminal I/O. With this patch, timeout
  for waiting mutex is set to 0 for the debugger process when the
  process calls CreateProcess() with DEBUG_PROCESS flag to avoid
  deadlock. This may cause the race issue in GDB, however, there
  is no other way than that.

Addresses:
 https://cygwin.com/pipermail/cygwin-developers/2021-December/012542.html
winsup/cygwin/fhandler_console.cc
winsup/cygwin/fhandler_termios.cc
winsup/cygwin/fhandler_tty.cc
winsup/cygwin/select.cc
winsup/cygwin/spawn.cc
winsup/cygwin/tty.cc
This page took 0.030073 seconds and 5 git commands to generate.