Commits on Source 2

  • Josh Bleecher Snyder's avatar
    fix TOCTOU interrupt race · f8f5a750
    Josh Bleecher Snyder authored
    The previous code was subject to a TOCTOU race:
    the atomic.AddInt32 in the select statement could succeed,
    but then context switch away before actually calling c.interrupt.
    The actual call to c.interrupt could end up occurring later,
    interrupting an unrelated subsequent query.
    
    Fixes #241
    f8f5a750
  • cznic's avatar
    Merge branch 'fix-241' into 'master' · 05f0a52b
    cznic authored
    fix TOCTOU interrupt race
    
    Closes #241
    
    See merge request !86
    05f0a52b
Loading
Loading