Prevent double closing of FDs by EIVR
authorDavid Ruggles <thedavidfactor@gmail.com>
Wed, 2 Dec 2009 22:17:22 +0000 (22:17 +0000)
committerDavid Ruggles <thedavidfactor@gmail.com>
Wed, 2 Dec 2009 22:17:22 +0000 (22:17 +0000)
commit93afa4cc4ffc7e05d0e46dda608c181ba0d109e6
treeb82e09304c0dc46cd2e2a3f5b76febe4af5fe671
parent51df77df8b583fd0d9aee5e4d7cf8af4e98a2ff1
Prevent double closing of FDs by EIVR

This caused a problem when asterisk was under heavy load and running both AGI and EIVR applications.
EIVR would close an FD at which point it would be considered freed and be used by a new AGI instance
the second close would then close the FD now in use by AGI.

(closes issue #16305)
Reported by: diLLec
Tested by: thedavidfactor, diLLec

Review: https://reviewboard.asterisk.org/r/436/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@232587 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_externalivr.c