aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-01 20:40:45 +0000
committermogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-01 20:40:45 +0000
commit4d4470fe1560a6d00b17db78798f0cc9790fe74b (patch)
tree9ff67aef03567d047ee999d61157f12bdfad4653
parent2b36f6c314b0b8f23a22dc03cebc9efaff4b681e (diff)
reports why an agi script errors out on opening
file git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9059 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--res/res_agi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/res/res_agi.c b/res/res_agi.c
index d7f0574af..99f6a1b32 100644
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -309,7 +309,8 @@ static int launch_script(char *script, char *argv[], int *fds, int *efd, int *op
/* Execute script */
execv(script, argv);
/* Can't use ast_log since FD's are closed */
- fprintf(stderr, "Failed to execute '%s': %s\n", script, strerror(errno));
+ fprintf(stdout, "verbose \"Failed to execute '%s': %s\" 2\n", script, strerror(errno));
+ fflush(stdout);
exit(1);
}
if (option_verbose > 2)