#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
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). */
terminal_initted = 0;
+#ifdef STARTUP_INFERIOR
+ STARTUP_INFERIOR (pending_execs);
+#else
while (1)
{
stop_soon_quietly = 1; /* Make wait_for_inferior be quiet */
resume (0, TARGET_SIGNAL_0); /* Just make it go on */
}
}
+#endif /* STARTUP_INFERIOR */
stop_soon_quietly = 0;
}