From 349b01808e9947da3ac948280d7910351adf4aab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 8 Mar 2004 12:08:06 +0000 Subject: [PATCH] Seems like I'm getting old: fixed a similar typo in pipefs (like the one I did in ports.c), thanks to Jack Burton for pointing this out. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6932 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/fs/pipefs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/core/fs/pipefs.cpp b/src/kernel/core/fs/pipefs.cpp index 52bbfbe622..12057fda97 100644 --- a/src/kernel/core/fs/pipefs.cpp +++ b/src/kernel/core/fs/pipefs.cpp @@ -1017,7 +1017,7 @@ pipefs_read(fs_volume _volume, fs_vnode _node, fs_cookie _cookie, off_t /*pos*/, status_t status = request.Wait((cookie->open_mode & O_NONBLOCK) != 0); inode->RemoveRequest(request); - if (status == B_TIMED_OUT || B_INTERRUPTED && request.BytesRead() > 0) + if ((status == B_TIMED_OUT || status == B_INTERRUPTED) && request.BytesRead() > 0) status = B_OK; if (status == B_OK)