diff src/master/settings.c @ 363:567e932cdc66 HEAD

Added autoclose_fd-flag for io_buffer_create_file() and io_buffer_create_mmap().
author Timo Sirainen <tss@iki.fi>
date Sun, 06 Oct 2002 06:09:36 +0300
parents edc37d046b08
children ea958a5b9de1
line wrap: on
line diff
--- a/src/master/settings.c	Sun Oct 06 05:54:35 2002 +0300
+++ b/src/master/settings.c	Sun Oct 06 06:09:36 2002 +0300
@@ -289,7 +289,7 @@
 		i_fatal("Can't open configuration file %s: %m", path);
 
 	linenum = 0;
-	inbuf = io_buffer_create_file(fd, default_pool, 2048);
+	inbuf = io_buffer_create_file(fd, default_pool, 2048, TRUE);
 	for (;;) {
 		line = io_buffer_next_line(inbuf);
 		if (line == NULL) {
@@ -339,7 +339,6 @@
 	};
 
 	io_buffer_destroy(inbuf);
-	(void)close(fd);
 
         settings_verify();
 }