X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=client_common.c;h=d9ed11f437b0e03c2d167865571a69e2c9955e33;hp=a4aa6d8c3ecc3ae386cbb14515f05f8257d96e0d;hb=6e4dcc88f4c52c7084539ed4d81ca06fd3e657aa;hpb=b66dfd41e268e64b65d2990bdec3d3a7e119e234 diff --git a/client_common.c b/client_common.c index a4aa6d8c..d9ed11f4 100644 --- a/client_common.c +++ b/client_common.c @@ -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) {