Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-10-06 23:47:45 +0400
committerCorinna Vinschen <corinna@vinschen.de>2011-10-06 23:47:45 +0400
commit852908e82d2f5e192113a11ead413214a135293e (patch)
tree4871f5845b8bd14ced1ed386626b8764dac145a9 /winsup/cygwin/fhandler_termios.cc
parentefe716bb8eb2a8e34c4b5e5df658221778b4312e (diff)
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Send __SIGSETPGRP
pseudo signal to process group instead of just calling init_console_handler. * sigproc.cc (wait_sig): Call init_console_handler here on __SIGSETPGRP signal. * sigproc.h (__SIGSETPGRP): Define.
Diffstat (limited to 'winsup/cygwin/fhandler_termios.cc')
-rw-r--r--winsup/cygwin/fhandler_termios.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_termios.cc b/winsup/cygwin/fhandler_termios.cc
index 708aabe4e..9ea6ae9d8 100644
--- a/winsup/cygwin/fhandler_termios.cc
+++ b/winsup/cygwin/fhandler_termios.cc
@@ -78,7 +78,8 @@ fhandler_termios::tcsetpgrp (const pid_t pgid)
{
case bg_ok:
tc ()->setpgid (pgid);
- init_console_handler (tc ()->is_console);
+ if (tc ()->is_console)
+ tc ()->kill_pgrp (__SIGSETPGRP);
res = 0;
break;
case bg_signalled: