Changeset 4668c1 in git


Ignore:
Timestamp:
Nov 24, 2015, 11:26:55 AM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
Children:
992bded7e68dcf90c2749e05d68aba5093a59e39
Parents:
8b9677509f933f77764c8d3fae0cc62f8c9eb23f
Message:
fix: off-by-1 in semaphore handling
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/misc_ip.cc

    r8b96775 r4668c1  
    10801080    m2_end_called = TRUE;
    10811081#ifdef HAVE_SIMPLEIPC
    1082     for (int j = SIPC_MAX_SEMAPHORES; j >= 0; j--)
     1082    for (int j = SIPC_MAX_SEMAPHORES-1; j >= 0; j--)
    10831083    {
    10841084      if (semaphore[j] != NULL)
Note: See TracChangeset for help on using the changeset viewer.