BeGeistert checkin: if B_RELEASE_ALL is used, the "count" argument should be
ignored completely (so that zero and below become valid). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9393 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
99a5b57a50
commit
b767f41204
@ -544,7 +544,7 @@ release_sem_etc(sem_id id, int32 count, uint32 flags)
|
||||
return B_NO_MORE_SEMS;
|
||||
if (id < 0)
|
||||
return B_BAD_SEM_ID;
|
||||
if (count <= 0)
|
||||
if (count <= 0 && (flags & B_RELEASE_ALL) == 0)
|
||||
return B_BAD_VALUE;
|
||||
|
||||
state = disable_interrupts();
|
||||
|
Loading…
Reference in New Issue
Block a user