From 31cef02895a2e22af729ecb91716a331127c8e5d Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 28 Mar 2008 17:28:19 +0000 Subject: [PATCH] reset descriptor to -1 after closing file in rotate git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7976 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/event_handlers/mod_cdr_csv/mod_cdr_csv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mod/event_handlers/mod_cdr_csv/mod_cdr_csv.c b/src/mod/event_handlers/mod_cdr_csv/mod_cdr_csv.c index 3c92160464..431c3c6093 100644 --- a/src/mod/event_handlers/mod_cdr_csv/mod_cdr_csv.c +++ b/src/mod/event_handlers/mod_cdr_csv/mod_cdr_csv.c @@ -85,6 +85,7 @@ static void do_rotate(cdr_fd_t *fd) size_t len; close(fd->fd); + fd->fd = -1; if (globals.rotate) { switch_time_exp_lt(&tm, switch_timestamp_now());