debug/gdb: fix from upstream with newer glibc(siginfo vs siginfo_t, Gentoo gdb-7.4.1 patch)
This is for when you failed to build gdb-native with the error:
gdb-7.4.1/gdb/linux-nat.h:79:18: error: field 'siginfo' has incomplete type"
This is from mirror://gentoo/distfiles/gdb-7.4.1-patches-2.tar.xz
Signed-off-by: "Jang, Bongseo" <graycells@gmail.com>
[yann.morin.1998@free.fr: refresh ptrace_setsiginfo patch]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-ID: <4eef2edec3201c50b420.1348370891@localhost.localdomain>
PatchWork-ID: 186179
1 only fork one to assist in stop-start-daemon assumptions about daemon behavior
3 http://bugs.gentoo.org/190785
5 diff -durN glibc-2.10.1.orig/nscd/nscd.c glibc-2.10.1/nscd/nscd.c
6 --- glibc-2.10.1.orig/nscd/nscd.c 2009-02-06 21:10:27.000000000 +0100
7 +++ glibc-2.10.1/nscd/nscd.c 2009-11-13 00:50:24.000000000 +0100
12 + if (write_pid (_PATH_NSCDPID) < 0)
13 + dbg_log ("%s: %s", _PATH_NSCDPID, strerror (errno));
15 int nullfd = open (_PATH_DEVNULL, O_RDWR);
19 for (i = min_close_fd; i < getdtablesize (); i++)
24 - error (EXIT_FAILURE, errno, _("cannot fork"));
33 openlog ("nscd", LOG_CONS | LOG_ODELAY, LOG_DAEMON);
35 - if (write_pid (_PATH_NSCDPID) < 0)
36 - dbg_log ("%s: %s", _PATH_NSCDPID, strerror (errno));
39 dbg_log (_("Could not create log file"));