return res_pri ?: res;
}
-static bool isHybrid; /* Set true if the active pipe is set to nat pipe even
- though the current process is a cygwin process. */
+static bool isHybrid; /* Set true if the active pipe is set to nat pipe
+ owned by myself even though the current process
+ is a cygwin process. */
static HANDLE h_gdb_inferior; /* Handle of GDB inferior process. */
static void
{
isHybrid = true;
setup_locale ();
- myself->exec_dwProcessId = myself->dwProcessId;
- myself->process_state |= PID_NEW_PG; /* Marker for nat_fg */
+ myself->exec_dwProcessId = myself->dwProcessId; /* Set this as a marker
+ for tty::nat_fg()
+ and process_sigs() */
bool stdin_is_ptys = GetStdHandle (STD_INPUT_HANDLE) == get_handle ();
setup_for_non_cygwin_app (false, NULL, stdin_is_ptys);
}
}
}
myself->exec_dwProcessId = 0;
- myself->process_state &= ~PID_NEW_PG;
isHybrid = false;
}
}