version 1.5, 2009/10/11 09:10:57 |
version 1.6, 2009/11/01 23:20:37 |
|
|
if (ctx->curclient != NULL) |
if (ctx->curclient != NULL) |
ctx->curclient->references++; |
ctx->curclient->references++; |
|
|
job = job_add(NULL, NULL, |
job = job_add(NULL, 0, NULL, |
data->arg, cmd_if_shell_callback, cmd_if_shell_free, cdata); |
data->arg, cmd_if_shell_callback, cmd_if_shell_free, cdata); |
job_run(job); |
job_run(job); |
|
|
|
|
struct cmd_list *cmdlist; |
struct cmd_list *cmdlist; |
char *cause; |
char *cause; |
|
|
if (!WIFEXITED(job->status) || WEXITSTATUS(job->status) != 0) { |
if (!WIFEXITED(job->status) || WEXITSTATUS(job->status) != 0) |
job_free(job); /* calls cmd_if_shell_free */ |
|
return; |
return; |
} |
|
|
|
if (cmd_string_parse(cdata->cmd, &cmdlist, &cause) != 0) { |
if (cmd_string_parse(cdata->cmd, &cmdlist, &cause) != 0) { |
if (cause != NULL) { |
if (cause != NULL) { |