From 0d62f282c44435920d28adfe9eb7806f6849857e Mon Sep 17 00:00:00 2001 From: Reid Sunderland Date: Mon, 23 Sep 2024 16:08:31 +0000 Subject: [PATCH] add gettid passthrough for #145 --- libsr3shim.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libsr3shim.c b/libsr3shim.c index 453617f..219d6b4 100644 --- a/libsr3shim.c +++ b/libsr3shim.c @@ -1436,6 +1436,9 @@ long int syscall(long int __sysno, ...) } else if (__sysno == SYS_getpid && syscall_fn_ptr) { sr_shimdebug_msg(1, "syscall %ld --> getpid, will pass along\n", __sysno); status = syscall_fn_ptr(__sysno); + } else if (__sysno == SYS_gettid && syscall_fn_ptr) { + sr_shimdebug_msg(1, "syscall %ld --> gettid, will pass along\n", __sysno); + status = syscall_fn_ptr(__sysno); } else if (syscall_fn_ptr) { sr_shimdebug_msg(1, "syscall %ld NOT IMPLEMENTED\n", __sysno); sr_log_msg(logctxptr,LOG_ERROR, "syscall (%ld) not implemented\n", __sysno);