Don't close audio[0] if you're not careful

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1887 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2004-01-01 00:26:11 +00:00
parent 9be31cd944
commit 152eeec7a7
1 changed files with 4 additions and 2 deletions

View File

@ -168,8 +168,10 @@ static int launch_script(char *script, char *args, int *fds, int *efd, int *opid
close(toast[1]);
close(fromast[0]);
// [PHM 12/18/03]
close(audio[0]);
if (efd) {
// [PHM 12/18/03]
close(audio[0]);
}
*opid = pid;
return 0;