* inflow.c (gdb_has_a_terminal): Guard access to our_process_group.

This commit is contained in:
Daniel Jacobowitz
2008-03-24 18:10:00 +00:00
parent daddbc6edd
commit 807bddf3a9
2 changed files with 6 additions and 0 deletions

View File

@@ -150,7 +150,9 @@ gdb_has_a_terminal (void)
if (our_ttystate != NULL)
{
gdb_has_a_terminal_flag = yes;
#ifdef PROCESS_GROUP_TYPE
our_process_group = gdb_getpgrp ();
#endif
}
}