Skip to content

Commit 39a1341

Browse files
authored
Merge pull request #45 from 0Bitbiscuits/toolchain
fix a bug at ftrylockfile(patch)
2 parents d01d4e7 + fb64419 commit 39a1341

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/internal/stdio_impl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
#define FLOCK(f) \
2020
do{ \
2121
if(!f->_flock) __lock_init_recursive(f->_flock); \
22-
return __lock_take_recursive(f->_flock); \
22+
__lock_take_recursive(f->_flock); \
2323
}while(0)
2424
#define FTRYLOCK(f) \
2525
do{ \
2626
if(!f->_flock) __lock_init_recursive(f->_flock); \
27-
__lock_trytake_recursive(f->_flock); \
27+
return __lock_trytake_recursive(f->_flock); \
2828
}while(0)
2929
#define FUNLOCK(f) __lock_release_recursive(f->_flock)
3030

0 commit comments

Comments
 (0)