Maximum file descriptor number (was: Automatic report from sources (radiusd) between 26.08.2005 - 27.08.2005 GMT)

Frank Cusack fcusack at fcusack.com
Sat Sep 3 21:27:33 CEST 2005


On September 3, 2005 4:32:01 PM +0200 Nicolas Baradakis <nbk at sitadelle.com> wrote:
>> =====================================================
>> Combined list of identical log entries
>> =====================================================
>> Description:
>> 	Use per-system max fd to close, rather than hard-coded number
>> Modified files:
>> 	File: radiusd/src/main/session.c; Revision: 1.28;
>> 	Date: 2005/08/26 22:02:29; Author: aland; Lines: (+10 -2)
>> 	File: radiusd/src/modules/rlm_exec/exec.c; Revision: 1.3;
>> 	Date: 2005/08/26 22:02:29; Author: aland; Lines: (+15 -3)
>
> Perhaps we could use fcntl(3, F_CLOSEM) on systems that implement
> this command.
>
> According to http://netbsd.gw.com/cgi-bin/man-cgi?fcntl
> F_CLOSEM   Close all file descriptors greater than or equal to fd.

How about closefrom() as well.
-frank





More information about the Freeradius-Devel mailing list