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:
9230295
)
callscgi: Log exec errors.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 3 Sep 2010 05:49:45 +0000
(07:49 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 3 Sep 2010 05:49:45 +0000
(07:49 +0200)
src/callscgi.c
patch
|
blob
|
blame
|
history
diff --git
a/src/callscgi.c
b/src/callscgi.c
index
7e5f51c
..
6adccc5
100644
(file)
--- 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);
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);
exit(127);
}
close(fd);
@@
-217,6
+218,7
@@
static void startnolisten(void)
dup2(fd, 0);
close(fd);
execvp(*progspec, progspec);
dup2(fd, 0);
close(fd);
execvp(*progspec, progspec);
+ flog(LOG_ERR, "callscgi: %s: %s", *progspec, strerror(errno));
exit(127);
}
}
exit(127);
}
}