diff options
Diffstat (limited to 'gdb/fork-child.c')
-rw-r--r-- | gdb/fork-child.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/gdb/fork-child.c b/gdb/fork-child.c index 9ed7b71..4954de2 100644 --- a/gdb/fork-child.c +++ b/gdb/fork-child.c @@ -30,13 +30,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <signal.h> -#ifdef SET_STACK_LIMIT_HUGE -#include <sys/time.h> -#include <sys/resource.h> - -extern int original_stack_limit; -#endif /* SET_STACK_LIMIT_HUGE */ - extern char **environ; #ifndef SHELL_FILE @@ -200,17 +193,6 @@ fork_inferior (exec_file, allargs, env, traceme_fun, init_trace_fun, if (debug_setpgrp == -1) perror("setpgrp failed in child"); -#ifdef SET_STACK_LIMIT_HUGE - /* Reset the stack limit back to what it was. */ - { - struct rlimit rlim; - - getrlimit (RLIMIT_STACK, &rlim); - rlim.rlim_cur = original_stack_limit; - setrlimit (RLIMIT_STACK, &rlim); - } -#endif /* SET_STACK_LIMIT_HUGE */ - /* Ask the tty subsystem to switch to the one we specified earlier (or to share the current terminal, if none was specified). */ |