- 
    Bug 
- 
    Resolution: Unresolved
- 
    P2: Important 
- 
    4.4.1, 4.6.1, 4.6.2, 5.2.1
- 
    None
- 
    Linux, GCC 4.2
When using QSystemSemaphore to solve producer-consumer communication between two processes. After 32767 acquire operations, the semaphore stops working. Try to acquire this semaphore 32768-th time returns false with error QSystemSemaphore::OutOfResources.
Attached is an example that reproduces the problem.
Create two instances of the application, one started with c and one with p (for producer and consumer).