* fhandler_termios.cc (tty_min::kill_pgrp): Don't send __SIGSETPGRP since
presumably we are already initialized.
This commit is contained in:
parent
d4f8245048
commit
069e637c0e
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2011-12-07 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||||
|
|
||||||
* select.cc (cygwin_select): Add common introducer and leaver debug
|
* select.cc (cygwin_select): Add common introducer and leaver debug
|
||||||
|
|
|
@ -114,7 +114,7 @@ fhandler_pty_master::tcgetpgrp ()
|
||||||
void
|
void
|
||||||
tty_min::kill_pgrp (int sig)
|
tty_min::kill_pgrp (int sig)
|
||||||
{
|
{
|
||||||
int killself = 0;
|
bool killself = false;
|
||||||
winpids pids ((DWORD) PID_MAP_RW);
|
winpids pids ((DWORD) PID_MAP_RW);
|
||||||
siginfo_t si = {0};
|
siginfo_t si = {0};
|
||||||
si.si_signo = sig;
|
si.si_signo = sig;
|
||||||
|
@ -125,7 +125,7 @@ tty_min::kill_pgrp (int sig)
|
||||||
if (!p->exists () || p->ctty != ntty || p->pgid != pgid)
|
if (!p->exists () || p->ctty != ntty || p->pgid != pgid)
|
||||||
continue;
|
continue;
|
||||||
if (p == myself)
|
if (p == myself)
|
||||||
killself++;
|
killself = sig != __SIGSETPGRP;
|
||||||
else
|
else
|
||||||
sig_send (p, si);
|
sig_send (p, si);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue