summaryrefslogtreecommitdiff
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-31 16:11:38 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-31 16:11:38 +0000
commit624f7979058b84cbf81c76d45f302ce757b213ca (patch)
treef226ad71b17a623c4bd4eefdfeceb15fbb71b765 /linux-user/syscall.c
parentafd7cd92e848f094cce4a03286e03634f49be573 (diff)
downloadqemu-624f7979058b84cbf81c76d45f302ce757b213ca.tar.gz
Make signal queues per thread.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4635 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r--linux-user/syscall.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index a8ea6c565a..5f2b48aa13 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -2736,12 +2736,8 @@ int do_fork(CPUState *env, unsigned int flags, abi_ulong newsp)
}
#endif
ts = malloc(sizeof(TaskState) + NEW_STACK_SIZE);
- memset(ts, 0, sizeof(TaskState));
+ init_task_state(ts);
new_stack = ts->stack;
- ts->used = 1;
- /* add in task state list */
- ts->next = first_task_state;
- first_task_state = ts;
/* we create a new CPU instance. */
new_env = cpu_copy(env);
/* Init regs that differ from the parent. */