提交 31cef028 authored 作者: Anthony Minessale's avatar Anthony Minessale

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
上级 c403ce54
...@@ -85,6 +85,7 @@ static void do_rotate(cdr_fd_t *fd) ...@@ -85,6 +85,7 @@ static void do_rotate(cdr_fd_t *fd)
size_t len; size_t len;
close(fd->fd); close(fd->fd);
fd->fd = -1;
if (globals.rotate) { if (globals.rotate) {
switch_time_exp_lt(&tm, switch_timestamp_now()); switch_time_exp_lt(&tm, switch_timestamp_now());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论