mirror of
https://github.com/lxsang/antd-cgi-plugin
synced 2024-12-27 10:28:22 +01:00
add data validity to scheduler
This commit is contained in:
parent
58e9fc053b
commit
b8c0e967b6
3
cgi.c
3
cgi.c
@ -84,6 +84,7 @@ static char *get_cgi_bin(antd_request_t *rq)
|
|||||||
if (!tmp)
|
if (!tmp)
|
||||||
return NULL;
|
return NULL;
|
||||||
char *bin = (char *)dvalue(cgi_bin, tmp);
|
char *bin = (char *)dvalue(cgi_bin, tmp);
|
||||||
|
LOG("CGI CMD: %s\n", bin);
|
||||||
free(tmp);
|
free(tmp);
|
||||||
return bin;
|
return bin;
|
||||||
}
|
}
|
||||||
@ -183,7 +184,7 @@ void *handle(void *data)
|
|||||||
char buf[BUFFLEN];
|
char buf[BUFFLEN];
|
||||||
int status;
|
int status;
|
||||||
antd_task_t *task = NULL;
|
antd_task_t *task = NULL;
|
||||||
task = antd_create_task(NULL, data, NULL);
|
task = antd_create_task(NULL, data, NULL,rq->client->last_io);
|
||||||
task->priority++;
|
task->priority++;
|
||||||
list env_vars = NULL;
|
list env_vars = NULL;
|
||||||
char *bin = get_cgi_bin(rq);
|
char *bin = get_cgi_bin(rq);
|
||||||
|
Loading…
Reference in New Issue
Block a user