develooper Front page | perl.perl5.porters | Postings from January 2005

Re: [Patch] [perl #32446] close leaves fd open

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
January 21, 2005 06:16
Subject:
Re: [Patch] [perl #32446] close leaves fd open
Message ID:
20050121151626.796337f5@grubert.mandrakesoft.com
Steffen Ullrich wrote:
> perl #32446 describes a bug with perl5.8 on OpenBSD, where a STDOUT gets 
> duped to a socket and a close(STDOUT) later leaves the socket open. 
> Attached is a proposed and tested fix for the problem, which simply 
> duplicates the FreeBSD code for OpenBSD.
> 
> Details:
> In perlio.c there is a function PerlIOStdio_invalidate_fileno which gets 
> used to close a stdio FILE* without closing the fd. There are a lot of 
> special cases for various platforms and then there is a fallback. 
> Apperantly the fallback is buggy.
> The patch does not attempt to fix the fallback, it simply adds another 
> special case, this time for __OpenBSD__

Thanks, your patch applied as change #23844 to bleadperl.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About