svn commit: r283434 - head/sys/compat/linux
Dmitry Chagin
dchagin at FreeBSD.org
Sun May 24 16:27:39 UTC 2015
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));
}
More information about the svn-src-all
mailing list