[Core] Fix hangup race in recording_follow_transfer.

This commit is contained in:
Andrey Volk
2020-07-01 04:19:25 +04:00
parent aaa4c09204
commit 2b8fa12baa
4 changed files with 300 additions and 72 deletions
+10
View File
@@ -1973,6 +1973,16 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_get_string(_In_ switch_file_han
*/
SWITCH_DECLARE(switch_status_t) switch_core_file_pre_close(_In_ switch_file_handle_t *fh);
/*!
\brief Duplicates a file handle using another pool
\param oldfh the file handle to duplicate
\param newfh pointer to assign new file handle to
\param pool the pool to use (NULL for new pool)
\return SWITCH_STATUS_SUCCESS if the file handle was duplicated
*/
SWITCH_DECLARE(switch_status_t) switch_core_file_handle_dup(switch_file_handle_t *oldfh, switch_file_handle_t **newfh, switch_memory_pool_t *pool);
/*!
\brief Close an open file handle
\param fh the file handle to close