reports why an agi script errors out on opening
authorMatt O'Gorman <mogorman@digium.com>
Wed, 1 Feb 2006 20:40:45 +0000 (20:40 +0000)
committerMatt O'Gorman <mogorman@digium.com>
Wed, 1 Feb 2006 20:40:45 +0000 (20:40 +0000)
file

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

res/res_agi.c

index d7f0574..99f6a1b 100644 (file)
@@ -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)