800-debian_linux-use-underscore-exit.patch 692 B

12345678910111213141516171819202122
  1. Status: committed upstream after 6.3. Fixes some terminal mangling in
  2. gdbtui.
  3. 2004-12-04 Daniel Jacobowitz <dan@debian.org>
  4. PR tui/1703
  5. * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
  6. Suggested by Joshua Neuheisel.
  7. Index: gdb-6.3/gdb/linux-nat.c
  8. ===================================================================
  9. --- gdb-6.3.orig/gdb/linux-nat.c 2004-12-08 18:22:04.996973094 -0500
  10. +++ gdb-6.3/gdb/linux-nat.c 2004-12-08 18:22:20.386956067 -0500
  11. @@ -147,7 +147,7 @@ linux_tracefork_child (void)
  12. ptrace (PTRACE_TRACEME, 0, 0, 0);
  13. kill (getpid (), SIGSTOP);
  14. fork ();
  15. - exit (0);
  16. + _exit (0);
  17. }
  18. /* Wrapper function for waitpid which handles EINTR. */