From 6fee9f4920b2e514e0f5ccf727a1b6a1d1837abc Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 29 Dec 2014 16:41:59 +0000 Subject: [PATCH] inode: Note bug in pipe handling --- Kernel/inode.c | 2 ++ 1 file changed, 2 insertions(+) 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 */ -- 2.34.1