From: Fredrik Tolf Date: Fri, 3 Sep 2010 05:49:45 +0000 (+0200) Subject: callscgi: Log exec errors. X-Git-Tag: 0.1~30 X-Git-Url: http://www.dolda2000.com/gitweb/?a=commitdiff_plain;ds=inline;h=7b9c1cff81db02307ec35ed58ba8269667ffbea0;p=ashd.git callscgi: Log exec errors. --- diff --git a/src/callscgi.c b/src/callscgi.c index 7e5f51c..6adccc5 100644 --- a/src/callscgi.c +++ b/src/callscgi.c @@ -194,6 +194,7 @@ static void startlisten(void) for(i = 3; i < FD_SETSIZE; i++) close(i); execvp(*progspec, progspec); + flog(LOG_ERR, "callscgi: %s: %s", *progspec, strerror(errno)); exit(127); } close(fd); @@ -217,6 +218,7 @@ static void startnolisten(void) dup2(fd, 0); close(fd); execvp(*progspec, progspec); + flog(LOG_ERR, "callscgi: %s: %s", *progspec, strerror(errno)); exit(127); } }