From: Paolo Bonzini <pbonzini@redhat.com>
To: bang bang <shenoubang@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] sigaction in windows
Date: Mon, 14 May 2012 10:39:44 +0200 [thread overview]
Message-ID: <4FB0C4D0.1050909@redhat.com> (raw)
In-Reply-To: <CA+C=sN-Q5PwsQBO=EnPd13G4BFHsoh4=Vx0PEzoT=Tr27c6E3g@mail.gmail.com>
Il 14/05/2012 05:47, bang bang ha scritto:
> Hi, everyone:
> I am very sorry to trouble you, but I have a question that need
> your help. As we know, sigaction is not defined in windows, but qemu can
> run on windows, I want to know how the qemu to implement sigaction so
> that it can run on windows an linux. I am very sorry to not find their
> implementation with windows.
It doesn't use sigaction. :) Whenever the POSIX version would send a
signal to a thread, the Windows version does the following:
- call SuspendThread on the receiving thread;
- execute the signal handler code in the sending thread;
- call ResumeThread on the receiving thread.
It is not exactly the same thing, but it is enough for QEMU's needs.
Paolo
next prev parent reply other threads:[~2012-05-14 8:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-14 3:47 [Qemu-devel] sigaction in windows bang bang
2012-05-14 8:39 ` Paolo Bonzini [this message]
2012-05-14 15:51 ` Mulyadi Santosa
2012-05-14 15:55 ` Paolo Bonzini
2012-05-15 13:38 ` Mulyadi Santosa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FB0C4D0.1050909@redhat.com \
--to=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=shenoubang@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.