svn commit: r293538 - stable/10/sys/compat/linux

Dmitry Chagin dchagin at FreeBSD.org
Sat Jan 9 16:27:35 UTC 2016


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


More information about the svn-src-all mailing list