Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Jan 2016 16:27:33 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r293538 - stable/10/sys/compat/linux
Message-ID:  <201601091627.u09GRXR1038603@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dchagin
Date: Sat Jan  9 16:27:33 2016
New Revision: 293538
URL: https://svnweb.freebsd.org/changeset/base/293538

Log:
  MFC r283434:
  
  Set WIFCONTINUED to the wait status if needed.

Modified:
  stable/10/sys/compat/linux/linux_misc.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/compat/linux/linux_misc.c
==============================================================================
--- stable/10/sys/compat/linux/linux_misc.c	Sat Jan  9 16:26:39 2016	(r293537)
+++ stable/10/sys/compat/linux/linux_misc.c	Sat Jan  9 16:27:33 2016	(r293538)
@@ -873,6 +873,8 @@ linux_common_wait(struct thread *td, int
 		else if (WIFSTOPPED(tmpstat))
 			tmpstat = (tmpstat & 0xffff00ff) |
 			    (BSD_TO_LINUX_SIGNAL(WSTOPSIG(tmpstat)) << 8);
+		else if (WIFCONTINUED(tmpstat))
+			tmpstat = 0xffff;
 		error = copyout(&tmpstat, status, sizeof(int));
 	}
 



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