diff options
author | dchagin <dchagin@FreeBSD.org> | 2011-02-15 21:46:36 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2011-02-15 21:46:36 +0000 |
commit | be13e396c9ec1ab7dc7f7c4cd04e66bcb6530c43 (patch) | |
tree | 942d40e010271adecb89335b134ba8fb75f78ab4 | |
parent | 77c093e6c2726cd9a391b9d1b470ade8b9f0bcb5 (diff) | |
download | FreeBSD-src-be13e396c9ec1ab7dc7f7c4cd04e66bcb6530c43.zip FreeBSD-src-be13e396c9ec1ab7dc7f7c4cd04e66bcb6530c43.tar.gz |
For realtime signals fill the sigval value.
-rw-r--r-- | sys/amd64/linux32/linux.h | 1 | ||||
-rw-r--r-- | sys/compat/linux/linux_signal.c | 4 | ||||
-rw-r--r-- | sys/i386/linux/linux.h | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/sys/amd64/linux32/linux.h b/sys/amd64/linux32/linux.h index 87597ee..555a912 100644 --- a/sys/amd64/linux32/linux.h +++ b/sys/amd64/linux32/linux.h @@ -306,6 +306,7 @@ struct l_new_utsname { #define LINUX_SIGPOLL LINUX_SIGIO #define LINUX_SIGPWR 30 #define LINUX_SIGSYS 31 +#define LINUX_SIGRTMIN 32 #define LINUX_SIGTBLSZ 31 #define LINUX_NSIG_WORDS 2 diff --git a/sys/compat/linux/linux_signal.c b/sys/compat/linux/linux_signal.c index 4a233c8..82dd2ee 100644 --- a/sys/compat/linux/linux_signal.c +++ b/sys/compat/linux/linux_signal.c @@ -649,4 +649,8 @@ ksiginfo_to_lsiginfo(ksiginfo_t *ksi, l_siginfo_t *lsi, l_int sig) lsi->lsi_uid = ksi->ksi_uid; break; } + if (sig >= LINUX_SIGRTMIN) { + lsi->lsi_int = ksi->ksi_info.si_value.sival_int; + lsi->lsi_ptr = PTROUT(ksi->ksi_info.si_value.sival_ptr); + } } diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h index 08f0fbd..78958db 100644 --- a/sys/i386/linux/linux.h +++ b/sys/i386/linux/linux.h @@ -281,6 +281,7 @@ struct l_new_utsname { #define LINUX_SIGPOLL LINUX_SIGIO #define LINUX_SIGPWR 30 #define LINUX_SIGSYS 31 +#define LINUX_SIGRTMIN 32 #define LINUX_SIGTBLSZ 31 #define LINUX_NSIG_WORDS 2 |