presumably we are already initialized.
2011-12-07 Christopher Faylor <me.cygwin2011@cgf.cx>
+ * fhandler_termios.cc (tty_min::kill_pgrp): Don't send __SIGSETPGRP
+ since presumably we are already initialized.
+
+2011-12-07 Christopher Faylor <me.cygwin2011@cgf.cx>
+
* select.cc (cygwin_select): Add common introducer and leaver debug
output.
(select_stuff::poll): Remove unneeded debugging.
void
tty_min::kill_pgrp (int sig)
{
- int killself = 0;
+ bool killself = false;
winpids pids ((DWORD) PID_MAP_RW);
siginfo_t si = {0};
si.si_signo = sig;
if (!p->exists () || p->ctty != ntty || p->pgid != pgid)
continue;
if (p == myself)
- killself++;
+ killself = sig != __SIGSETPGRP;
else
sig_send (p, si);
}