diff options
author | dchagin <dchagin@FreeBSD.org> | 2016-01-09 17:31:20 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2016-01-09 17:31:20 +0000 |
commit | 35570fa80b57de598abae862add770e92bd0eb79 (patch) | |
tree | 837d0ff1b800e28bae9e783766a28ce9440a9c9c /sys/compat/linux/linux_timer.c | |
parent | f620adce6c44f81cc2fec6805eea217baeb4a672 (diff) | |
download | FreeBSD-src-35570fa80b57de598abae862add770e92bd0eb79.zip FreeBSD-src-35570fa80b57de598abae862add770e92bd0eb79.tar.gz |
MFC r283476:
Convert Linux signal number to the FreeBSD.
Diffstat (limited to 'sys/compat/linux/linux_timer.c')
-rw-r--r-- | sys/compat/linux/linux_timer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_timer.c b/sys/compat/linux/linux_timer.c index d363b4c..7dbddbe 100644 --- a/sys/compat/linux/linux_timer.c +++ b/sys/compat/linux/linux_timer.c @@ -58,7 +58,7 @@ linux_convert_l_sigevent(struct l_sigevent *l_sig, struct sigevent *sig) switch (l_sig->sigev_notify) { case L_SIGEV_SIGNAL: sig->sigev_notify = SIGEV_SIGNAL; - CP(*l_sig, *sig, sigev_signo); + sig->sigev_signo = linux_to_bsd_signal(l_sig->sigev_signo); PTRIN_CP(*l_sig, *sig, sigev_value.sival_ptr); break; case L_SIGEV_NONE: @@ -75,7 +75,7 @@ linux_convert_l_sigevent(struct l_sigevent *l_sig, struct sigevent *sig) case L_SIGEV_THREAD_ID: sig->sigev_notify = SIGEV_THREAD_ID; CP2(*l_sig, *sig, _l_sigev_un._tid, sigev_notify_thread_id); - CP(*l_sig, *sig, sigev_signo); + sig->sigev_signo = linux_to_bsd_signal(l_sig->sigev_signo); PTRIN_CP(*l_sig, *sig, sigev_value.sival_ptr); break; default: |