]> Git Repo - qemu.git/blobdiff - coroutine-sigaltstack.c
qcow2: Round QCowL2Meta.offset down to cluster boundary
[qemu.git] / coroutine-sigaltstack.c
index 7fa2e8554032b860c8c9a4fb3f8bcb290d03e507..39dbaa5da1392dd4466c46544478f6bf58218dfb 100644 (file)
@@ -171,8 +171,8 @@ static Coroutine *coroutine_new(void)
     CoroutineThreadState *coTS;
     struct sigaction sa;
     struct sigaction osa;
-    struct sigaltstack ss;
-    struct sigaltstack oss;
+    stack_t ss;
+    stack_t oss;
     sigset_t sigs;
     sigset_t osigs;
     jmp_buf old_env;
@@ -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) {
This page took 0.023947 seconds and 4 git commands to generate.