Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
python: Added a WSGI validation mode to ashd.wsgidir.
[ashd.git]
/
src
/
dirplex
/
dirplex.c
diff --git
a/src/dirplex/dirplex.c
b/src/dirplex/dirplex.c
index
8b604d2
..
55b4648
100644
(file)
--- a/
src/dirplex/dirplex.c
+++ b/
src/dirplex/dirplex.c
@@
-59,9
+59,14
@@
static void handle(struct hthead *req, int fd, char *path, struct pattern *pat)
{
struct child *ch;
struct config *ccf;
{
struct child *ch;
struct config *ccf;
+ struct headmod *head;
char *twd;
char *twd;
- if(!strncmp(path, "./", 2))
+ for(head = pat->headers; head != NULL; head = head->next) {
+ headrmheader(req, head->name);
+ headappheader(req, head->name, head->value);
+ }
+ if(!strncmp(path, "./", 2) && path[2])
path += 2;
if(pat->fchild) {
headappheader(req, "X-Ash-File", path);
path += 2;
if(pat->fchild) {
headappheader(req, "X-Ash-File", path);
@@
-315,10
+320,12
@@
static void serve(struct hthead *req, int fd)
static void chldhandler(int sig)
{
pid_t pid;
static void chldhandler(int sig)
{
pid_t pid;
+ int st;
- do {
- pid = waitpid(-1, NULL, WNOHANG);
- } while(pid > 0);
+ while((pid = waitpid(-1, &st, WNOHANG)) > 0) {
+ if(WCOREDUMP(st))
+ flog(LOG_WARNING, "child process %i dumped core", pid);
+ }
}
static void sighandler(int sig)
}
static void sighandler(int sig)