From 15a35758d8490368fedfe595246b100c7af59a11 Mon Sep 17 00:00:00 2001 From: Takashi Yano Date: Mon, 28 Feb 2022 07:24:45 +0900 Subject: Cygwin: termios: Ensure detection of GDB inferior in process_sigs(). - In some situations, some cygwin processes might wrongly identified as GDB inferior. This patch ensures the detection of GDB inferior. --- winsup/cygwin/pinfo.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'winsup/cygwin/pinfo.cc') diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index bb7c16547..5e04ea3da 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -106,6 +106,8 @@ pinfo_init (char **envp, int envc) myself->process_state |= PID_ACTIVE; myself->process_state &= ~(PID_INITIALIZING | PID_EXITED | PID_REAPED); + if (being_debugged ()) + myself->process_state |= PID_DEBUGGED; myself.preserve (); debug_printf ("pid %d, pgid %d, process_state %y", myself->pid, myself->pgid, myself->process_state); -- cgit v1.2.3