[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fclose bug?
From: |
Ulrich Drepper |
Subject: |
Re: fclose bug? |
Date: |
02 Mar 2002 02:25:58 -0800 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.5 (asparagus) |
Jason Merrill <address@hidden> writes:
> This testcase segfaults with the Red Hat glibc-2.2.4-19.3 rpm. AFAICT, the
> second fclose should detect the error and return EOF rather than crashing.
No. If a file descriptor is closed it no file descriptor anymore.
The runtime library is not there to catch the programmers bugs.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------