Changeset 320 for trunk/src


Ignore:
Timestamp:
Mar 15, 2011, 8:59:48 PM (14 years ago)
Author:
katerina
Message:

Fix for ticket #237: Potential deadlock in sh_hash_hashdelete()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_hash.c

    r307 r320  
    15541554
    15551555  SL_ENTER(_("sh_hash_hashdelete"));
    1556   SH_MUTEX_LOCK(mutex_hash);
     1556
     1557  /* need deadlock detection here if called from exit handler
     1558   */
     1559  SH_MUTEX_TRYLOCK(mutex_hash);
    15571560
    15581561  if (IsInit == 0)
     
    15701573  ; /* 'label at end of compound statement */
    15711574  SH_MUTEX_UNLOCK(mutex_hash);
     1575
    15721576  SL_RET0(_("sh_hash_hashdelete"));
    15731577}
Note: See TracChangeset for help on using the changeset viewer.