Skip to content

Commit abfcd1d

Browse files
Merge pull request #2087 from dabund24/fix-dl-test-case
Fix deadlock in descendant lockset test case
2 parents 2d231e0 + 4c42efd commit abfcd1d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/regression/53-races-mhp/61-dl_sometimes_creation_without_lock_racing.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ pthread_t id1;
77

88
void *t1(void *arg) {
99
pthread_mutex_lock(&mutex);
10+
pthread_mutex_unlock(&mutex);
1011
global++; // RACE!
1112
return NULL;
1213
}

0 commit comments

Comments
 (0)