Skip to contentSkip to conversation

Fix: get tid not pid in vtid context

PATCH Mathieu Desnoyers 1 participant 1 message Jun 3, 2019 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Mathieu Desnoyers

author Applied
#1 lore raw

Merged 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.

---
liblttng-ust/lttng-context-vtid.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
liblttng-ust/lttng-context-vtid.c +1 -2
index 5cefe953..80661f63 100644
@@ -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