mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-13 15:10:49 +02:00
commit bash-20090416 snapshot
This commit is contained in:
@@ -799,6 +799,7 @@ run_debug_trap ()
|
||||
{
|
||||
int trap_exit_value;
|
||||
pid_t save_pgrp;
|
||||
int save_pipe[2];
|
||||
|
||||
/* XXX - question: should the DEBUG trap inherit the RETURN trap? */
|
||||
trap_exit_value = 0;
|
||||
@@ -806,14 +807,25 @@ run_debug_trap ()
|
||||
{
|
||||
#if defined (JOB_CONTROL)
|
||||
save_pgrp = pipeline_pgrp;
|
||||
pipeline_pgrp = shell_pgrp;
|
||||
pipeline_pgrp = 0;
|
||||
save_pipeline (1);
|
||||
# if defined (PGRP_PIPE)
|
||||
save_pgrp_pipe (save_pipe, 1);
|
||||
# endif
|
||||
stop_making_children ();
|
||||
#endif
|
||||
|
||||
trap_exit_value = _run_trap_internal (DEBUG_TRAP, "debug trap");
|
||||
|
||||
#if defined (JOB_CONTROL)
|
||||
pipeline_pgrp = save_pgrp;
|
||||
restore_pipeline (1);
|
||||
# if defined (PGRP_PIPE)
|
||||
close_pgrp_pipe ();
|
||||
restore_pgrp_pipe (save_pipe);
|
||||
# endif
|
||||
if (pipeline_pgrp > 0)
|
||||
give_terminal_to (pipeline_pgrp, 1);
|
||||
notify_and_cleanup ();
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user