From 52a523af71448f62e8523ed002447c95170381e9 Mon Sep 17 00:00:00 2001 From: Jessica Clarke Date: Wed, 19 Jun 2024 21:40:25 +0100 Subject: bsd-user: Set TaskState ts_tid for initial threads Currently we only set it on fork. Note: Upstream (blitz) commit also did new threads, but that code isn't in qemu project repo yet. Signed-off-by: Jessica Clarke Pull-Request: https://github.com/qemu-bsd-user/qemu-bsd-user/pull/52 Reviewed-by: Warner Losh Signed-off-by: Warner Losh --- bsd-user/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bsd-user') diff --git a/bsd-user/main.c b/bsd-user/main.c index 7c230b0c7a..61ca73c478 100644 --- a/bsd-user/main.c +++ b/bsd-user/main.c @@ -610,6 +610,7 @@ int main(int argc, char **argv) init_task_state(ts); ts->info = info; ts->bprm = &bprm; + ts->ts_tid = qemu_get_thread_id(); cpu->opaque = ts; target_set_brk(info->brk); -- cgit v1.2.3