Skip to content

Commit 92d5fdc

Browse files
author
zhengshuxin
committed
release 3.6.0-2 for compatibility for calling gettid() on Linux.
1 parent ffe5b13 commit 92d5fdc

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

lib_acl/src/init/acl_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#include "init.h"
2727

28-
static char *version = "3.6.0-1 20221216-13:00";
28+
static char *version = "3.6.0-2 20221216-14:50";
2929

3030
const char *acl_version(void)
3131
{

lib_fiber/c/src/common/pthread_patch.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,12 @@ long thread_self(void)
327327
}
328328

329329
#elif defined(__linux__)
330+
331+
#include <sys/syscall.h>
332+
330333
long thread_self(void)
331334
{
332-
return (long) gettid();
335+
return (long) syscall(SYS_gettid);
333336
}
334337
#elif defined(__APPLE__)
335338
long thread_self(void)

packaging/acl-libs.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
%define release_id 1
1+
%define release_id 2
22

33
Summary: The powerful c/c++ library
44
Name: acl-libs
@@ -45,6 +45,9 @@ rm -rf %{buildroot}
4545

4646
%changelog
4747

48+
* Fri Dec 16 2022 shuxin.zheng [email protected] 3.6.0-2-20221216.14
49+
- bugfix: use syscall(SYS_gettid) other than gettid() for CentOS OS.
50+
4851
* Fri Dec 16 2022 shuxin.zheng [email protected] 3.6.0-1-20221216.13
4952
- feature: one fd can be opered by multiple fibers in io_uring mode
5053
- bugfix: fixed one bug in fiber_mutex.c

0 commit comments

Comments
 (0)