From 60129a64099fcbaf9e1e96420d98a0526c6149cd Mon Sep 17 00:00:00 2001 From: t-k- Date: Thu, 2 Jul 2015 18:00:14 +0000 Subject: [PATCH] Print additional debug message to stderr when execution of script failed. --- fcgiwrap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fcgiwrap.c b/fcgiwrap.c index b44d8aa..8527b6c 100644 --- a/fcgiwrap.c +++ b/fcgiwrap.c @@ -578,6 +578,7 @@ static void handle_fcgi_request(void) } execl(filename, filename, (void *)NULL); + fprintf(stderr, "Error: %s\n", strerror(errno)); cgi_error("502 Bad Gateway", "Cannot execute script", filename); default: /* parent */