diff --git a/src/kernel/core/fs/pipefs.cpp b/src/kernel/core/fs/pipefs.cpp index 5f8b41d91c..52bbfbe622 100644 --- a/src/kernel/core/fs/pipefs.cpp +++ b/src/kernel/core/fs/pipefs.cpp @@ -158,7 +158,6 @@ class Inode { DoublyLinked::List fDoneRequests; benaphore fRequestLock; - sem_id fReadLock; sem_id fWriteLock; }; @@ -423,7 +422,6 @@ Inode::Inode(Volume *volume, const char *name, int32 type) fType = type; if (type == S_IFIFO) { - fReadLock = create_sem(0, "pipe read"); fWriteLock = create_sem(1, "pipe write"); benaphore_init(&fRequestLock, "pipe request"); } @@ -434,8 +432,7 @@ Inode::~Inode() { free(const_cast(fName)); - if (fType == S_IFIFO) { - delete_sem(fReadLock); + if (fType == S_IFIFO) { delete_sem(fWriteLock); benaphore_destroy(&fRequestLock); } @@ -497,10 +494,6 @@ Inode::WriteBufferToChain(const void *buffer, size_t *_bufferSize, bool nonBlock chain = cbuf_merge_chains(fBufferChain, chain); - // let waiting readers go on -// if (fBufferChain == NULL) -// release_sem(ReadLock()); - fBufferChain = chain; *_bufferSize = bufferSize;