From: Mark Spencer Date: Thu, 1 Jan 2004 00:26:11 +0000 (+0000) Subject: Don't close audio[0] if you're not careful X-Git-Tag: 0.7.0~125 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=152eeec7a77ac12a6f48d557481828268c857600;p=thirdparty%2Fasterisk.git 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 --- diff --git a/apps/app_agi.c b/apps/app_agi.c index 2dc6981d4c..39ac20a0ae 100755 --- a/apps/app_agi.c +++ b/apps/app_agi.c @@ -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;