coroutine: Fix setup of sigaltstack coroutines
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 9 May 2012 17:23:27 +0000 (14:23 -0300)
committerKevin Wolf <kwolf@redhat.com>
Mon, 14 May 2012 15:02:19 +0000 (17:02 +0200)
commit99b5beba2f6c3f2e206e6200a05519a0ec2dc8db
treee8d4db8a0db39878002e74fe3b5689ff2419b2ea
parent77f4c9a68aedb9b0d290a1def1bfc8714be862ec
coroutine: Fix setup of sigaltstack coroutines

Use pthread_kill instead of process-wide kill to invoke the signal
handler used for stack switching. This may fix spurious lock-ups with
this backend, easily triggerable by extending the time window between
kill and sigsuspend.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
coroutine-sigaltstack.c