From e338aa618bd8abc045a53fddf8ea042af0aabb8f Mon Sep 17 00:00:00 2001 From: Ramon Nou Date: Thu, 9 Apr 2026 17:50:11 +0200 Subject: [PATCH 1/2] remove syscall linking in libc and user lib --- src/client/CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt index 2956c6e8e..841a32939 100644 --- a/src/client/CMakeLists.txt +++ b/src/client/CMakeLists.txt @@ -180,7 +180,6 @@ if (GKFS_BUILD_USER_LIB) fmt::fmt Threads::Threads Microsoft.GSL::GSL - Syscall_intercept::Syscall_intercept ) endif() @@ -193,7 +192,6 @@ target_link_libraries( fmt::fmt Threads::Threads Microsoft.GSL::GSL - Syscall_intercept::Syscall_intercept ) # Enable MSGPack metrics for intercept only if (GKFS_ENABLE_CLIENT_METRICS) -- GitLab From 2cf54acaa9c1bbd1d1af97a6d95b2ec9be580f65 Mon Sep 17 00:00:00 2001 From: Ramon Nou Date: Thu, 9 Apr 2026 18:05:16 +0200 Subject: [PATCH 2/2] fix logger reentrancy --- include/client/logging.hpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/include/client/logging.hpp b/include/client/logging.hpp index cc19682f3..5eeab331e 100644 --- a/include/client/logging.hpp +++ b/include/client/logging.hpp @@ -290,16 +290,11 @@ mini_gmtime_r(const time_t* timep, struct tm* tm) { return tm; } -static inline struct tm* -mini_gmtime(const time_t* timep) { - static struct tm tm; - return mini_gmtime_r(timep, &tm); -} - static inline ssize_t format_timeval(struct timeval* tv, char* buf, size_t sz) { ssize_t written = -1; - const struct tm* gm = mini_gmtime(&tv->tv_sec); + struct tm tm; + const struct tm* gm = mini_gmtime_r(&tv->tv_sec, &tm); written = (ssize_t) strftime(buf, sz, "%Y-%m-%d %H:%M:%S", gm); -- GitLab