problem with libc_r (uthread_close.c) in 4.8-STABLE

Erik Greenwald erik at smluc.org
Fri Jun 13 08:44:34 PDT 2003


On Fri, Jun 13, 2003 at 11:11:33AM -0400, Garrett Rooney wrote:
> Paul Reece wrote:

<snip>

> 
> Umh, you want 'fclose(file)', right?  Since file is a FILE *, not a file 
> descriptor.

yes, the configure script for mysql is wrong... however, the proper behavior
for close() if fed a junk value isn't a segfault, it's to set the errno and
return a -1... compiling the test program without -libc_r lets it behave
normally, with -libc_r causes sig11... (there's a ports pr on this from
a couple days ago)

> 
> g-arrett

-- 
        -Erik <erik at smluc.org> [http://math.smsu.edu/~erik]

The opinions expressed by me are not necessarily opinions. In all probability,
they are random rambling, and to be ignored. Failure to ignore may result in
severe boredom or confusion. Shake well before opening. Keep Refrigerated.


More information about the freebsd-stable mailing list