X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Ffork-child.c;h=2b2daeb14eee9c80753deab591bc5507b9d8236d;hb=1a49497348d02ffd9ba0eab6881bb3353223a068;hp=4954de2b169a19e451a2abd4f255f096ae66846b;hpb=d8fc87731898508fa3fe2e138264a4f06836f1fc;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/fork-child.c b/gdb/fork-child.c index 4954de2b16..2b2daeb14e 100644 --- a/gdb/fork-child.c +++ b/gdb/fork-child.c @@ -29,6 +29,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "thread.h" #include +#ifdef HAVE_UNISTD_H +#include +#endif extern char **environ; @@ -259,6 +262,9 @@ startup_inferior (ntraps) terminal_initted = 0; +#ifdef STARTUP_INFERIOR + STARTUP_INFERIOR (pending_execs); +#else while (1) { stop_soon_quietly = 1; /* Make wait_for_inferior be quiet */ @@ -292,5 +298,6 @@ startup_inferior (ntraps) resume (0, TARGET_SIGNAL_0); /* Just make it go on */ } } +#endif /* STARTUP_INFERIOR */ stop_soon_quietly = 0; }