X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=client.c;h=827ff215dbf68446f90da4575dd32ebb3ed93a35;hb=e3a7e12639c34fd86d48a072beb48add8c498d09;hp=24f9c61c1c505e304b590b4ad7d7bce7041e13b0;hpb=742c8b3f79a59278ced71e1855da1846b157b494;p=paraslash.git diff --git a/client.c b/client.c index 24f9c61c..827ff215 100644 --- a/client.c +++ b/client.c @@ -42,7 +42,7 @@ struct exec_task { size_t result_size; }; -static void exec_pre_select(struct sched *s, void *context) +static void exec_pre_monitor(struct sched *s, void *context) { struct exec_task *et = context; int ret = btr_node_status(et->btrn, 0, BTR_NT_LEAF); @@ -51,7 +51,7 @@ static void exec_pre_select(struct sched *s, void *context) sched_min_delay(s); } -static int exec_post_select(__a_unused struct sched *s, void *context) +static int exec_post_monitor(__a_unused struct sched *s, void *context) { struct exec_task *et = context; struct btr_node *btrn = et->btrn; @@ -138,8 +138,8 @@ static int execute_client_command(const char *cmd, char **result) EMBRACE(.name = "exec_collect")); exec_task.task = task_register(&(struct task_info) { .name = "client exec", - .pre_select = exec_pre_select, - .post_select = exec_post_select, + .pre_monitor = exec_pre_monitor, + .post_monitor = exec_post_monitor, .context = &exec_task, }, &command_sched); ret = client_connect(ct, &command_sched, NULL, exec_task.btrn); @@ -578,7 +578,7 @@ struct supervisor_task { struct task *task; }; -static int supervisor_post_select(struct sched *s, void *context) +static int supervisor_post_monitor(struct sched *s, void *context) { struct supervisor_task *svt = context; int ret = task_status(ct->task); @@ -648,7 +648,7 @@ int main(int argc, char *argv[]) EMBRACE(.name = "stdout", .parent = ct->btrn[0])); supervisor_task.task = task_register(&(struct task_info) { .name = "supervisor", - .post_select = supervisor_post_select, + .post_monitor = supervisor_post_monitor, .context = &supervisor_task, }, &sched);