nodejs / uvwasi

WASI syscall API built atop libuv
MIT License
228 stars 51 forks source link

unlock all fd mutexes in reverse order #87

Closed cjihrig closed 4 years ago

cjihrig commented 4 years ago

Some functions acquire mutexes for multiple file descriptors. This commit ensures that the mutexes are released in the reverse order that they are acquired.

Refs: https://github.com/nodejs/node/pull/31432#pullrequestreview-345604137