[asterisk-commits] trunk r9059 - /trunk/res/res_agi.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Feb 1 13:40:46 MST 2006


Author: mogorman
Date: Wed Feb  1 14:40:45 2006
New Revision: 9059

URL: http://svn.digium.com/view/asterisk?rev=9059&view=rev
Log:
reports why an agi script errors out on opening
file

Modified:
    trunk/res/res_agi.c

Modified: trunk/res/res_agi.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_agi.c?rev=9059&r1=9058&r2=9059&view=diff
==============================================================================
--- trunk/res/res_agi.c (original)
+++ trunk/res/res_agi.c Wed Feb  1 14:40:45 2006
@@ -309,7 +309,8 @@
 		/* 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) 



More information about the asterisk-commits mailing list