From d02a8d02666bcdaa94d92da5d72d120bf7de8a1a Mon Sep 17 00:00:00 2001 From: drow Date: Sat, 4 Dec 2004 17:21:23 +0000 Subject: [PATCH] PR tui/1703 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit. Suggested by Joshua Neuheisel. --- gdb/ChangeLog | 6 ++++++ gdb/linux-nat.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cbe9c1a572..918ecdd895 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2004-12-04 Daniel Jacobowitz + + PR tui/1703 + * linux-nat.c (linux_tracefork_child): Use _exit instead of exit. + Suggested by Joshua Neuheisel. + 2004-12-03 Randolph Chung * gdbarch.sh (instruction_nullified): Delete. diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index ef693f9771..a6f389e5b2 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -147,7 +147,7 @@ linux_tracefork_child (void) ptrace (PTRACE_TRACEME, 0, 0, 0); kill (getpid (), SIGSTOP); fork (); - exit (0); + _exit (0); } /* Wrapper function for waitpid which handles EINTR. */ -- 2.11.0