1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Patch from Mandrakesoft to ensure we close all files.

This commit is contained in:
John Terpstra 0001-01-01 00:00:00 +00:00
parent d6889b1954
commit 8051406588

View File

@ -95,7 +95,9 @@ static void daemonize(void)
static void close_our_files(int client_fd)
{
int i;
for (i = 0; i < 256; i++) {
getrlimit(RLIMIT_NOFILE,&limits);
for (1 = 0; i< limits.rlim_max, i++) {
if (i == client_fd) continue;
close(i);
}