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


Reply via email to