From: Alan Cox Date: Mon, 29 Dec 2014 16:41:59 +0000 (+0000) Subject: inode: Note bug in pipe handling X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=6fee9f4920b2e514e0f5ccf727a1b6a1d1837abc;p=FUZIX.git inode: Note bug in pipe handling --- diff --git a/Kernel/inode.c b/Kernel/inode.c index aaf1e961..15f19c0e 100644 --- a/Kernel/inode.c +++ b/Kernel/inode.c @@ -110,6 +110,8 @@ void writei(inoptr ino, uint8_t flag) case F_PIPE: ispipe = true; + /* FIXME: this will hang if you ever write > 16 * BLKSIZE + in one go - needs merging into the loop */ while ((towrite = udata.u_count) > (16 * BLKSIZE) - ino->c_node.i_size) { if (ino->c_refs == 1) { /* No readers */