diff options
author | Jessica Clarke <jrtc27@jrtc27.com> | 2024-06-19 21:40:25 +0100 |
---|---|---|
committer | Warner Losh <imp@bsdimp.com> | 2024-11-04 20:26:40 -0700 |
commit | 52a523af71448f62e8523ed002447c95170381e9 (patch) | |
tree | c7bfecedc39048b04a201338b9da2c0ba3a4da4c | |
parent | 89974523346abad6c9a67d99e3ae0fe1385a5ecb (diff) |
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 <jrtc27@jrtc27.com>
Pull-Request: https://github.com/qemu-bsd-user/qemu-bsd-user/pull/52
Reviewed-by: Warner Losh <imp@bsdimp.com>
Signed-off-by: Warner Losh <imp@bsdimp.com>
-rw-r--r-- | bsd-user/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |