* inflow.c (terminal_ours_1): Guard access to
inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
This commit is contained in:
parent
5746fb46c8
commit
49a834f99f
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2008-03-19 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
* inflow.c (terminal_ours_1): Guard access to
|
||||||
|
inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
|
||||||
|
|
||||||
2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
|
2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
|
||||||
Jim Blandy <jimb@codesourcery.com>
|
Jim Blandy <jimb@codesourcery.com>
|
||||||
Daniel Jacobowitz <drow@false.org>
|
Daniel Jacobowitz <drow@false.org>
|
||||||
|
|
|
@ -350,11 +350,13 @@ terminal_ours_1 (int output_only)
|
||||||
xfree (inferior_ttystate);
|
xfree (inferior_ttystate);
|
||||||
inferior_ttystate = serial_get_tty_state (stdin_serial);
|
inferior_ttystate = serial_get_tty_state (stdin_serial);
|
||||||
|
|
||||||
|
#ifdef PROCESS_GROUP_TYPE
|
||||||
if (!attach_flag)
|
if (!attach_flag)
|
||||||
/* If setpgrp failed in terminal_inferior, this would give us
|
/* If setpgrp failed in terminal_inferior, this would give us
|
||||||
our process group instead of the inferior's. See
|
our process group instead of the inferior's. See
|
||||||
terminal_inferior for details. */
|
terminal_inferior for details. */
|
||||||
inferior_process_group = gdb_getpgrp ();
|
inferior_process_group = gdb_getpgrp ();
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Here we used to set ICANON in our ttystate, but I believe this
|
/* Here we used to set ICANON in our ttystate, but I believe this
|
||||||
was an artifact from before when we used readline. Readline sets
|
was an artifact from before when we used readline. Readline sets
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue