Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 May 2015 17:49:09 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r283476 - head/sys/compat/linux
Message-ID:  <201505241749.t4OHn9uF030917@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dchagin
Date: Sun May 24 17:49:09 2015
New Revision: 283476
URL: https://svnweb.freebsd.org/changeset/base/283476

Log:
  Convert Linux signal number to the FreeBSD.

Modified:
  head/sys/compat/linux/linux_timer.c

Modified: head/sys/compat/linux/linux_timer.c
==============================================================================
--- head/sys/compat/linux/linux_timer.c	Sun May 24 17:48:34 2015	(r283475)
+++ head/sys/compat/linux/linux_timer.c	Sun May 24 17:49:09 2015	(r283476)
@@ -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?201505241749.t4OHn9uF030917>