OSDN Git Service

* fhandler_termios.cc (tty_min::kill_pgrp): Don't send __SIGSETPGRP since
authorcgf <cgf>
Thu, 8 Dec 2011 04:09:21 +0000 (04:09 +0000)
committercgf <cgf>
Thu, 8 Dec 2011 04:09:21 +0000 (04:09 +0000)
presumably we are already initialized.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_termios.cc

index beb1fd7..5d0cbd1 100644 (file)
@@ -1,5 +1,10 @@
 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.
index 3d77c55..7dc5bf5 100644 (file)
@@ -114,7 +114,7 @@ fhandler_pty_master::tcgetpgrp ()
 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;
@@ -125,7 +125,7 @@ tty_min::kill_pgrp (int sig)
       if (!p->exists () || p->ctty != ntty || p->pgid != pgid)
        continue;
       if (p == myself)
-       killself++;
+       killself = sig != __SIGSETPGRP;
       else
        sig_send (p, si);
     }