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

Nicolas Baradakis nbk at sitadelle.com
Sat Sep 3 16:32:01 CEST 2005


> =====================================================
> 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.

-- 
Nicolas Baradakis




More information about the Freeradius-Devel mailing list