mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
use the kernel sigaction syscall to avoid relying on glibc one
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1044 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
3611a29c09
commit
d2bfb39ad2
3 changed files with 39 additions and 11 deletions
16
osdep.c
16
osdep.c
|
@ -143,6 +143,22 @@ void *shmat(int shmid, const void *shmaddr, int shmflg)
|
|||
return ptr;
|
||||
}
|
||||
|
||||
/****************************************************************/
|
||||
/* sigaction bypassing the threads */
|
||||
|
||||
static int kernel_sigaction(int signum, const struct qemu_sigaction *act,
|
||||
struct qemu_sigaction *oldact,
|
||||
int sigsetsize)
|
||||
{
|
||||
QEMU_SYSCALL4(rt_sigaction, signum, act, oldact, sigsetsize);
|
||||
}
|
||||
|
||||
int qemu_sigaction(int signum, const struct qemu_sigaction *act,
|
||||
struct qemu_sigaction *oldact)
|
||||
{
|
||||
return kernel_sigaction(signum, act, oldact, 8);
|
||||
}
|
||||
|
||||
/****************************************************************/
|
||||
/* memory allocation */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue