Skip to content

Commit

Permalink
add gettid passthrough for #145
Browse files Browse the repository at this point in the history
  • Loading branch information
reidsunderland committed Oct 8, 2024
1 parent 84fe237 commit 289181e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libsr3shim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 289181e

Please sign in to comment.