From 25f0ac90a9dd8b6bbe76d8b3bd5f59176288976a Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 17 Feb 2008 14:34:34 +0000 Subject: [PATCH] axeld + bonefish: The return value of Inode::WaitForRequest() is status_t not bool. So the method would always fail when it actually succeeded. This affected reads from pipes which didn't have data. The bug was hidded since VFS code mostly checks error codes only against < B_OK, so that such a read would be treated as 0 byte read. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23976 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/fs/pipefs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/fs/pipefs.cpp b/src/system/kernel/fs/pipefs.cpp index 8ae0b9c583..ab81b29845 100644 --- a/src/system/kernel/fs/pipefs.cpp +++ b/src/system/kernel/fs/pipefs.cpp @@ -760,7 +760,7 @@ Inode::WaitForRequest(ReadRequest &request) // unpublish the condition variable conditionVariable.Unpublish(); - return status != B_OK; + return status; }