struct exec_task exec_task = {
.task = {
.pre_select = exec_pre_select,
- .new_post_select = exec_post_select,
- .post_select = NULL,
+ .post_select = exec_post_select,
.status = "client exec task",
},
.result_buf = para_strdup(""),
int ret;
client_disconnect(ct);
- if (!line || !*line)
- return 0;
- PARA_DEBUG_LOG("line handler: %s\n", line);
+ PARA_DEBUG_LOG("line: %s\n", line);
ret = make_client_argv(line);
- if (ret < 0)
+ if (ret <= 0)
return ret;
ret = client_connect(ct, &sched, NULL, NULL);
if (ret < 0)
.completers = completers,
};
- PARA_NOTICE_LOG("\n%s\n", VERSION_TEXT("client"));
+ PARA_NOTICE_LOG("\n%s\n", version_text("client"));
if (ct->conf.history_file_given)
history_file = para_strdup(ct->conf.history_file_arg);
else {
}
static struct task svt = {
- .new_post_select = supervisor_post_select,
- .post_select = NULL,
+ .post_select = supervisor_post_select,
.status = "supervisor task"
};