mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof-capture: set tid to pid on non-Linux
This commit is contained in:
@ -241,6 +241,8 @@ sysprof_collector_get (void)
|
|||||||
self->pid = getpid ();
|
self->pid = getpid ();
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
self->tid = syscall (__NR_gettid, 0);
|
self->tid = syscall (__NR_gettid, 0);
|
||||||
|
#else
|
||||||
|
self->tid = self->pid;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (g_getenv ("SYSPROF_CONTROL_FD") != NULL)
|
if (g_getenv ("SYSPROF_CONTROL_FD") != NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user