summaryrefslogtreecommitdiffstats
path: root/src/sighook.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-05-17 13:13:06 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-05-17 13:57:01 -0400
commitc70e7375b1808b23fe4db2018d5e8c9bcb70464d (patch)
treeb84fca909d89c7d5a7f461c7cafeae0058bdca79 /src/sighook.c
parentc3d6f07b8e4d22df533ce7a90660ae1da2df5476 (diff)
downloadbfs-c70e7375b1808b23fe4db2018d5e8c9bcb70464d.tar.xz
diag: New helpers to include xstrerror(errno) automatically
Diffstat (limited to 'src/sighook.c')
-rw-r--r--src/sighook.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sighook.c b/src/sighook.c
index 745ccb9..ff5b96f 100644
--- a/src/sighook.c
+++ b/src/sighook.c
@@ -104,7 +104,7 @@ static int arc_sem_wait(struct arc *arc) {
#if _POSIX_SEMAPHORES > 0
if (arc->sem_status == 0) {
while (sem_wait(&arc->sem) != 0) {
- bfs_verify(errno == EINTR, "sem_wait(): %s", xstrerror(errno));
+ bfs_everify(errno == EINTR, "sem_wait()");
}
return 0;
}
@@ -146,7 +146,7 @@ static void arc_destroy(struct arc *arc) {
#if _POSIX_SEMAPHORES > 0
if (arc->sem_status == 0) {
- bfs_verify(sem_destroy(&arc->sem) == 0, "sem_destroy(): %s", xstrerror(errno));
+ bfs_everify(sem_destroy(&arc->sem) == 0, "sem_destroy()");
}
#endif
}