[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mint-1.11h2
- Subject: Re: mint-1.11h2
- From: Juergen Lock <nox@jelal.north.de>
- Date: Sat, 17 Sep 94 2:40:08 CEDT
- In-reply-to: <no.id>; from "nox" at Sep 16, 94 7:54 pm
> Index: pipefs.c
>...
> * pty master reads are always RAW
> */
> - if (nbytes > 1 && nbytes > this->outp->len)
> + if (nbytes > 1 && nbytes > this->outp->len) {
> + while (!(f->flags & O_NDELAY) &&
> + !this->outp->len && this->outp->writers > 0 &&
> + this->outp->writers != VIRGIN_PIPE)
> + sleep (IO_Q, (long)this->outp);
> nbytes = this->outp->len;
> + }
> return pipe_read(f, buf, nbytes);
*argh* this of course has to be,
Index: pipefs.c
@@ -879,7 +879,9 @@
!this->outp->len && this->outp->writers > 0 &&
this->outp->writers != VIRGIN_PIPE)
sleep (IO_Q, (long)this->outp);
- nbytes = this->outp->len;
+ if (nbytes > this->outp->len) {
+ nbytes = this->outp->len;
+ }
}
return pipe_read(f, buf, nbytes);
}
sorry,
Juergen
--
J"urgen Lock / nox@jelal.north.de / UUCP: ..!uunet!unido!uniol!jelal!nox
...ohne Gewehr
PGP public key fingerprint = 8A 18 58 54 03 7B FC 12 1F 8B 63 C7 19 27 CF DA