For realtime signals fill the sigval value.

This commit is contained in:
Dmitry Chagin 2011-02-15 21:46:36 +00:00
parent f3481dd9ab
commit 09d6cb0a23
3 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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);
}
}

View File

@ -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