* 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.
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user