MFC r283434:

Set WIFCONTINUED to the wait status if needed.
This commit is contained in:
dchagin 2016-01-09 16:27:33 +00:00
parent c0b5073f8d
commit 711049c77b

View File

@ -873,6 +873,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));
}