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
This commit is contained in:
Ingo Weinhold 2008-02-17 14:34:34 +00:00
parent 392ad2822d
commit 25f0ac90a9

View File

@ -760,7 +760,7 @@ Inode::WaitForRequest(ReadRequest &request)
// unpublish the condition variable
conditionVariable.Unpublish();
return status != B_OK;
return status;
}