]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - client.c
client.c: Add status info.
[paraslash.git] / client.c
index f47a0bec46a8c0d57f4ed2c22490a359ebbe8aed..da1fab27d754ed1c4f07d7f0c6ed2491f71873ac 100644 (file)
--- a/client.c
+++ b/client.c
@@ -35,7 +35,7 @@ static void supervisor_pre_select(struct sched *s, struct task *t)
                ct->inbuf = sit.buf;
                ct->in_loaded = &sit.loaded;
                ct->in_error = &sit.task.error;
-               t->error = -1;
+               t->error = -E_TASK_STARTED;
                goto min_delay;
        }
        if (ct->status == CL_RECEIVING) {
@@ -44,7 +44,7 @@ static void supervisor_pre_select(struct sched *s, struct task *t)
                sot.loaded = &ct->loaded;
                sot.input_error = &ct->task.error;
                register_task(&sot.task);
-               t->error = -1;
+               t->error = -E_TASK_STARTED;
                goto min_delay;
        }
        return;
@@ -54,7 +54,8 @@ min_delay:
 }
 
 static struct task svt = {
-       .pre_select = supervisor_pre_select
+       .pre_select = supervisor_pre_select,
+       .status = "supervisor task"
 };
 
 INIT_STDERR_LOGGING(ct->conf.loglevel_arg);