Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Feb 2015 21:12:13 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r279110 - user/dchagin/lemul/sys/compat/linux
Message-ID:  <201502212112.t1LLCDY1075632@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dchagin
Date: Sat Feb 21 21:12:12 2015
New Revision: 279110
URL: https://svnweb.freebsd.org/changeset/base/279110

Log:
  Convert Linux signal number to the FreeBSD.

Modified:
  user/dchagin/lemul/sys/compat/linux/linux_timer.c

Modified: user/dchagin/lemul/sys/compat/linux/linux_timer.c
==============================================================================
--- user/dchagin/lemul/sys/compat/linux/linux_timer.c	Sat Feb 21 21:10:10 2015	(r279109)
+++ user/dchagin/lemul/sys/compat/linux/linux_timer.c	Sat Feb 21 21:12:12 2015	(r279110)
@@ -58,7 +58,7 @@ linux_convert_l_sigevent(struct l_sigeve
 	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_sigeve
 	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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502212112.t1LLCDY1075632>