X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=client_common.c;h=cd1ccc619ce06710d9fad42652d6868942fc17d8;hp=f615bb7289bd1951057a20743a21045019109a18;hb=1ada5f286b031bde90d5cdaf8f85311cbfa7db6b;hpb=9b406cbe5d20ba969713ca3d7a8033e697476d75 diff --git a/client_common.c b/client_common.c index f615bb72..cd1ccc61 100644 --- a/client_common.c +++ b/client_common.c @@ -159,7 +159,10 @@ again: } if (n == 0) return 0; - if (!sb_received(ct->sbc[0], n, result)) + ret = sb_received(ct->sbc[0], n, result); + if (ret < 0) + return ret; + if (ret == 0) goto again; ct->sbc[0] = NULL; return 1; @@ -400,7 +403,7 @@ static int client_post_select(struct sched *s, void *context) btr_consume(ct->btrn[1], sz); } } - /* fall though */ + /* fall through */ case CL_EXECUTING: if (ct->btrn[0]) { ret = btr_node_status(ct->btrn[0], 0, BTR_NT_ROOT);