1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

* sysdeps/unix/sysv/linux/fork.c (__libc_fork): Reset refcntr in

new thread, don't just decrement it.
	Patch by Suzuki K P <suzuki@in.ibm.com>.
This commit is contained in:
Ulrich Drepper
2007-02-25 21:44:22 +00:00
parent 621c133d40
commit 00a1430e3f
3 changed files with 14 additions and 5 deletions

View File

@ -1031,13 +1031,13 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc)
exponent -= incr;
}
if (int_no + exponent > MAX_10_EXP + 1)
if (__builtin_expect (int_no + exponent > MAX_10_EXP + 1, 0))
{
__set_errno (ERANGE);
return negative ? -FLOAT_HUGE_VAL : FLOAT_HUGE_VAL;
}
if (exponent < MIN_10_EXP - (DIG + 1))
if (__builtin_expect (exponent < MIN_10_EXP - (DIG + 1), 0))
{
__set_errno (ERANGE);
return 0.0;