Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61a9ff6
)
multifscgi: Print error message when running a child fails.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 30 Oct 2010 09:37:04 +0000
(11:37 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 30 Oct 2010 09:37:04 +0000
(11:37 +0200)
src/multifscgi.c
patch
|
blob
|
blame
|
history
diff --git
a/src/multifscgi.c
b/src/multifscgi.c
index
6692402
..
69448c5
100644
(file)
--- a/
src/multifscgi.c
+++ b/
src/multifscgi.c
@@
-23,6
+23,7
@@
#include <signal.h>
#include <sys/wait.h>
#include <time.h>
+#include <errno.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
@@
-37,6
+38,7
@@
static volatile int done, chdone;
static void runchild(void)
{
execvp(chspec[0], chspec);
+ fprintf(stderr, "%s: %s", chspec[0], strerror(errno));
exit(127);
}
@@
-133,7
+135,7
@@
static void term(int sig)
static void usage(FILE *out)
{
- fprintf(out, "usage: multifscgi NUM PROGRAM [ARGS...]\n");
+ fprintf(out, "usage: multifscgi
[-h]
NUM PROGRAM [ARGS...]\n");
}
int main(int argc, char **argv)