[testsuite] [RHEL-5] Fix gdb-orphanripper.c runtime error.
This commit is contained in:
parent
a3d12927af
commit
01f32662b6
@ -108,7 +108,7 @@ static int child_exited (void)
|
|||||||
char buf[200];
|
char buf[200];
|
||||||
int fd, i, retval;
|
int fd, i, retval;
|
||||||
ssize_t got;
|
ssize_t got;
|
||||||
char *state;
|
char state[3];
|
||||||
|
|
||||||
snprintf (buf, sizeof (buf), "/proc/%ld/stat", (long) child);
|
snprintf (buf, sizeof (buf), "/proc/%ld/stat", (long) child);
|
||||||
fd = open (buf, O_RDONLY);
|
fd = open (buf, O_RDONLY);
|
||||||
@ -128,14 +128,14 @@ static int child_exited (void)
|
|||||||
perror ("close (/proc/CHILD/stat)");
|
perror ("close (/proc/CHILD/stat)");
|
||||||
exit (EXIT_FAILURE);
|
exit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
i = sscanf (buf, "%*d%*s%ms", &state);
|
/* RHEL-5 does not support %ms. */
|
||||||
|
i = sscanf (buf, "%*d%*s%2s", state);
|
||||||
if (i != 1)
|
if (i != 1)
|
||||||
{
|
{
|
||||||
perror ("sscanf (/proc/CHILD/stat)");
|
perror ("sscanf (/proc/CHILD/stat)");
|
||||||
exit (EXIT_FAILURE);
|
exit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
retval = strcmp (state, "Z") == 0;
|
retval = strcmp (state, "Z") == 0;
|
||||||
free (state);
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
5
gdb.spec
5
gdb.spec
@ -36,7 +36,7 @@ Version: 7.6
|
|||||||
|
|
||||||
# The release always contains a leading reserved number, start it at 1.
|
# The release always contains a leading reserved number, start it at 1.
|
||||||
# `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
|
# `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
|
||||||
Release: 26%{?dist}
|
Release: 27%{?dist}
|
||||||
|
|
||||||
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain
|
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain
|
||||||
Group: Development/Debuggers
|
Group: Development/Debuggers
|
||||||
@ -1394,6 +1394,9 @@ fi
|
|||||||
%endif # 0%{!?el5:1} || "%{_target_cpu}" == "noarch"
|
%endif # 0%{!?el5:1} || "%{_target_cpu}" == "noarch"
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 6 2013 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.6-27.fc19
|
||||||
|
- [testsuite] [RHEL-5] Fix gdb-orphanripper.c runtime error.
|
||||||
|
|
||||||
* Fri May 3 2013 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.6-26.fc19
|
* Fri May 3 2013 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.6-26.fc19
|
||||||
- Fix gcore for vDSO (on ppc64).
|
- Fix gcore for vDSO (on ppc64).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user