]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - client_common.c
Fix 'install' target.
[paraslash.git] / client_common.c
index a4aa6d8c3ecc3ae386cbb14515f05f8257d96e0d..d9ed11f437b0e03c2d167865571a69e2c9955e33 100644 (file)
@@ -44,6 +44,7 @@ void client_disconnect(struct client_task *ct)
        if (ct->scc.fd >= 0)
                close(ct->scc.fd);
        free_argv(ct->features);
+       ct->features = NULL;
        sc_free(ct->scc.recv);
        ct->scc.recv = NULL;
        sc_free(ct->scc.send);
@@ -333,7 +334,9 @@ static void client_post_select(struct sched *s, struct task *t)
        size_t n;
        char buf[CLIENT_BUFSIZE];
 
-       t->error = 0;
+       ret = task_get_notification(t);
+       if (ret < 0)
+               goto out;
        if (ct->scc.fd < 0)
                return;
        switch (ct->status) {