On Thu, Aug 10, 2000, Parag Warudkar wrote:
> open("/dev/zero", O_RDONLY) = 257
> close(257) =0
> open("/dev/zero", O_RDONLY) = 257
> close(257) =0
> open("/dev/zero", O_RDONLY) = 257
> close(257) = 0
> close(257) = 0 //FISHY Can a file descriptor be successfully closed 2
> times?
>
> [...]
> Is it possible for a file descriptor to be successfully closed 2 times?
There is no answer to this question, because the question is useless. The
point is that calling close(2) twice on a fd is already illegal, so the
question whether the second call can be sucessful or not is useless. The call
is already illegal, so the result can be anything - including success. Don't
be surprised by the return code, be terrified instead about the module. It is
broken.
> How to go about this?
Fix the module - it should never call close(2) twice on the same fd
without an intermediate open(2).
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]