summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt O'Gorman <mogorman@digium.com>2006-02-01 20:40:45 +0000
committerMatt O'Gorman <mogorman@digium.com>2006-02-01 20:40:45 +0000
commitf246b9fc64ea8843f419947045574edb2681f9a2 (patch)
tree9ff67aef03567d047ee999d61157f12bdfad4653
parentadaddaa5c5c53c44cc564fc06ebece31c6dd8eb4 (diff)
reports why an agi script errors out on opening
file git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9059 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-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)