httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cli...@organic.com (Cliff Skolnick)
Subject Re: Closing file descriptors...
Date Thu, 27 Apr 1995 13:20:06 GMT
Swift...even if you have set your system up to have thousands of
file descriptor per process?  This is a known bug in sendmail that it
does this and gets boged down.  This is a very suboptimal hack.
It's really only a problem for files you have write permission to,
who cares about the rest?  And if you did care you'd know what they
were and close them.

Apache can't provide a safe enviornment for CGI's, it's simply
not doable.


On Apr 27,  2:18pm, Robert S. Thau wrote:
} Subject: Re: Closing file descriptors...
} The trouble with close-on-exec is that you have to remember to do it
} to *everything* --- including stuff that the library may have opened
} behind your back which you don't necessarily want to keep open.  If
} you go through the trouble of tracking down everything, they are, in
} principle, equivalent, but
} 
}   for (fd = 3; fd < max; ++fd) close(fd);
} 
} is a lot more swift and sure...
} 
} rst
}-- End of excerpt from Robert S. Thau



Mime
View raw message