]> git.corax.cc Git - toolbox/commit
include/wmutex: Don't write to stderr when wmutex_unlock() fails
authorMatthias Kruk <m@m10k.eu>
Sat, 8 Oct 2022 08:21:45 +0000 (17:21 +0900)
committerMatthias Kruk <m@m10k.eu>
Sat, 8 Oct 2022 08:21:45 +0000 (17:21 +0900)
commite23bde303bc1961a72857dd598665c17f5ed7388
tree3864880830ed4e728d2e397fc922f4011e39134c
parent0ae4ddebb4bebf20482cc01f7cbefa0bea2a2d36
include/wmutex: Don't write to stderr when wmutex_unlock() fails

When a wmutex could not be unlocked, the rm call in wmutex_unlock()
writes an error message directly to stderr. However, the function
should only return an error without writing to stderr.

This commit modifies wmutex_unlock() so that it does not write to
stderr.
include/wmutex.sh