<snip>
> The forked process could exec itself to close fd's higher
> than $^F (ordinarily 2) for the initial leak. But I suspect
> there's no easy way to close fd's more selectively.
>
Yeah I had thought about the exec(), but being its a library I would
have no idea what to exec...they could tell me but that would feel
like a really clumsy daemon library.

I did find this out though.  There is a "table" of filehandles (or
really PerlIO structures) in perlio.c.  This is what is iterated
across when you exit perl.  What I need to do is write some C code
that will provide a function that will return this table as a list of
filehandles.  It would be cool though if this already existed, but I'm
not seeing it.

Thanks...james

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to