Skip to content
  • Rob Swindell's avatar
    15e40a45
    Fix potential deadlock in getnodedat(), observed on macOS · 15e40a45
    Rob Swindell authored
    Upon any node.dab lock or read failure, this code would cause errormsg() which
    would often/usually end up claling getnodedat() which would block forever trying
    to acquire the ndoefile_mutex (introduced in commit b9633069, I'm not clear why).
    
    Unlock/release the mutex *before* calling errormsg().
    15e40a45
    Fix potential deadlock in getnodedat(), observed on macOS
    Rob Swindell authored
    Upon any node.dab lock or read failure, this code would cause errormsg() which
    would often/usually end up claling getnodedat() which would block forever trying
    to acquire the ndoefile_mutex (introduced in commit b9633069, I'm not clear why).
    
    Unlock/release the mutex *before* calling errormsg().
Loading