X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=client.c;h=07da6529c5f690929d678678489317d9b4d29d74;hp=1506f656c28eeaabff0d8213c0b45e597bebeb2e;hb=b18a5fbb286422395ae52b78dcf0ceb2c3d070c8;hpb=6105cde18ae21b82708a4c98aa2d54820afd47a5 diff --git a/client.c b/client.c index 1506f656..07da6529 100644 --- a/client.c +++ b/client.c @@ -32,7 +32,7 @@ static void client_event_handler(struct task *t) PARA_NOTICE_LOG("%s\n", PARA_STRERROR(-t->ret)); if (t->ret != -E_HANDSHAKE_COMPLETE) { unregister_task(t); - p->eof = 1; + p->error = t->ret; return; } if (p->status == CL_SENDING) { @@ -41,13 +41,13 @@ static void client_event_handler(struct task *t) register_task(&sit.task); p->inbuf = sit.buf; p->in_loaded = &sit.loaded; - p->in_eof = &sit.eof; + p->in_error = &sit.error; return; } stdout_set_defaults(&sot); sot.buf = p->buf; sot.loaded = &p->loaded; - sot.input_eof = &p->eof; + sot.input_error = &p->error; register_task(&sot.task); }