]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Updated filestream destructor to block until move is complete when cache is used
authorMatthew Jordan <mjordan@digium.com>
Tue, 5 Jul 2011 13:23:57 +0000 (13:23 +0000)
committerMatthew Jordan <mjordan@digium.com>
Tue, 5 Jul 2011 13:23:57 +0000 (13:23 +0000)
commit46289ce3a01fe68c0d80d6eddcacd73f10d9f5fe
tree9d50bf458641b1dba09fe139c65858ac453abcf0
parent6348add6645975baf2610a7afb9994d79fc0603c
Updated filestream destructor to block until move is complete when cache is used

When a cache directory is used, the process is forked and a mv command is executed to move the temporary file to the permanent location.  This caused issues with voicemail, where a race condition occurred when the parent expected the file to be in the permanent location prior to the mv command completing.  The parent process is now blocked until the mv command completes.

(closes issue ASTERISK-17724)
Reported by: Adiren P.
Tested by: mjordan

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@326209 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/file.c