Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 May 2015 16:27:39 +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: r283434 - head/sys/compat/linux
Message-ID:  <201505241627.t4OGRdKl084730@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dchagin
Date: Sun May 24 16:27:38 2015
New Revision: 283434
URL: https://svnweb.freebsd.org/changeset/base/283434

Log:
  Set WIFCONTINUED to the wait status if needed.
  
  Differential Revision:	https://reviews.freebsd.org/D1083
  Reviewed by:	trasz

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

Modified: head/sys/compat/linux/linux_misc.c
==============================================================================
--- head/sys/compat/linux/linux_misc.c	Sun May 24 16:26:55 2015	(r283433)
+++ head/sys/compat/linux/linux_misc.c	Sun May 24 16:27:38 2015	(r283434)
@@ -874,6 +874,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?201505241627.t4OGRdKl084730>