Fix: get tid not pid in vtid context
A message that is not in the archive (sent off-list or not yet received): [email protected]
Mathieu Desnoyers
AppliedMerged into master (only applies to master).
Thanks!
Mathieu
Quoted 24 lines · ----- On Jun 3, 2019, at 2:21 PM, Michael Jeanson [email protected] wrote:
Looks like an over enthusiastic copy/paste error in commit
98357ffd0125c23387d42d4b706c56077392326d.Signed-off-by Michael Jeanson <[email protected]>---
liblttng-ust/lttng-context-vtid.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)liblttng-ust/lttng-context-vtid.c +1
-2@@ -63,7 +63,7 @@ pid_t wrapper_getvtid(void) vtid =CMM_LOAD_SHARED (URCU_TLS (cached_vtid));if (caa_unlikely (!vtid)) { - vtid =getpid (); + vtid =gettid ();CMM_STORE_SHARED (URCU_TLS (cached_vtid), vtid); }return vtid; --2.17.1
Signature · 3 lines
Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com