mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
Revert "rcu: do not create thread in pthread_atfork callback"
This reverts commit a59629fcc6.
This is not needed anymore because the IOThread mutex is not
"magic" anymore (need not kick the CPU thread)and also because
fork callbacks are only enabled at the very beginning of
QEMU's execution.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
@@ -6354,7 +6354,6 @@ static int do_fork(CPUArchState *env, unsigned int flags, abi_ulong newsp,
|
||||
ret = fork();
|
||||
if (ret == 0) {
|
||||
/* Child Process. */
|
||||
rcu_after_fork();
|
||||
cpu_clone_regs(env, newsp);
|
||||
fork_end(1);
|
||||
/* There is a race condition here. The parent process could
|
||||
|
||||
Reference in New Issue
Block a user