sched: Allow more than one running scheduler instance.
[paraslash.git] / recv.c
diff --git a/recv.c b/recv.c
index 52f457f..9b63f51 100644 (file)
--- a/recv.c
+++ b/recv.c
@@ -102,12 +102,12 @@ int main(int argc, char *argv[])
        sot.btrn = btr_new_node(&(struct btr_node_description)
                EMBRACE(.parent = rn.btrn, .name = "stdout"));
        stdout_set_defaults(&sot);
-       register_task(&sot.task);
+       register_task(&s, &sot.task);
 
        rn.task.pre_select = r->pre_select;
        rn.task.post_select = r->post_select;
        sprintf(rn.task.status, "%s", r->name);
-       register_task(&rn.task);
+       register_task(&s, &rn.task);
 
        ret = schedule(&s);
 out: