1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/gdb/6.3/800-debian_linux-use-underscore-exit.patch Wed May 23 21:08:24 2007 +0000
1.3 @@ -0,0 +1,22 @@
1.4 +Status: committed upstream after 6.3. Fixes some terminal mangling in
1.5 +gdbtui.
1.6 +
1.7 +2004-12-04 Daniel Jacobowitz <dan@debian.org>
1.8 +
1.9 + PR tui/1703
1.10 + * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
1.11 + Suggested by Joshua Neuheisel.
1.12 +
1.13 +Index: gdb-6.3/gdb/linux-nat.c
1.14 +===================================================================
1.15 +--- gdb-6.3.orig/gdb/linux-nat.c 2004-12-08 18:22:04.996973094 -0500
1.16 ++++ gdb-6.3/gdb/linux-nat.c 2004-12-08 18:22:20.386956067 -0500
1.17 +@@ -147,7 +147,7 @@ linux_tracefork_child (void)
1.18 + ptrace (PTRACE_TRACEME, 0, 0, 0);
1.19 + kill (getpid (), SIGSTOP);
1.20 + fork ();
1.21 +- exit (0);
1.22 ++ _exit (0);
1.23 + }
1.24 +
1.25 + /* Wrapper function for waitpid which handles EINTR. */