Set WIFCONTINUED to the wait status if needed.

Differential Revision:	https://reviews.freebsd.org/D1083
Reviewed by:	trasz
This commit is contained in:
Dmitry Chagin 2015-05-24 16:27:38 +00:00
parent 9599b0ec3a
commit 7a7a6efc25

View File

@ -874,6 +874,8 @@ linux_common_wait(struct thread *td, int pid, int *status,
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));
}