[Freeswitch-svn] [commit] r7976 - freeswitch/trunk/src/mod/event_handlers/mod_cdr_csv

Freeswitch SVN anthm at freeswitch.org
Fri Mar 28 13:28:19 EDT 2008


Author: anthm
Date: Fri Mar 28 13:28:19 2008
New Revision: 7976

Modified:
   freeswitch/trunk/src/mod/event_handlers/mod_cdr_csv/mod_cdr_csv.c

Log:
reset descriptor to -1 after closing file in rotate

Modified: freeswitch/trunk/src/mod/event_handlers/mod_cdr_csv/mod_cdr_csv.c
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_cdr_csv/mod_cdr_csv.c	(original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_cdr_csv/mod_cdr_csv.c	Fri Mar 28 13:28:19 2008
@@ -85,6 +85,7 @@
 	size_t len;
 
 	close(fd->fd);
+	fd->fd = -1;
 
 	if (globals.rotate) {
 		switch_time_exp_lt(&tm, switch_timestamp_now());



More information about the Freeswitch-svn mailing list