diff options
author | 2012-05-14 12:45:01 -0500 | |
---|---|---|
committer | 2012-05-14 12:45:01 -0500 | |
commit | 9cc31772bf45a3002fd3886e32ab31f9b396b4da (patch) | |
tree | 0c0c0ecc8239ab3081ec8870d6c858d341a78cc7 /coroutine-sigaltstack.c | |
parent | Merge remote-tracking branch 'qmp/queue/qmp' into staging (diff) | |
parent | qemu-img: Fix segmentation fault (diff) | |
download | qemu-9cc31772bf45a3002fd3886e32ab31f9b396b4da.tar.xz qemu-9cc31772bf45a3002fd3886e32ab31f9b396b4da.zip |
Merge remote-tracking branch 'kwolf/for-anthony' into staging
* kwolf/for-anthony:
qemu-img: Fix segmentation fault
qcow2: Don't ignore failure to clear autoclear flags
coroutine: Fix setup of sigaltstack coroutines
Diffstat (limited to 'coroutine-sigaltstack.c')
-rw-r--r-- | coroutine-sigaltstack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coroutine-sigaltstack.c b/coroutine-sigaltstack.c index 7fa2e85540..861e87805a 100644 --- a/coroutine-sigaltstack.c +++ b/coroutine-sigaltstack.c @@ -226,7 +226,7 @@ static Coroutine *coroutine_new(void) * called. */ coTS->tr_called = 0; - kill(getpid(), SIGUSR2); + pthread_kill(pthread_self(), SIGUSR2); sigfillset(&sigs); sigdelset(&sigs, SIGUSR2); while (!coTS->tr_called) { |