Set WIFCONTINUED to the wait status if needed.
Differential Revision: https://reviews.freebsd.org/D1083 Reviewed by: trasz
This commit is contained in:
parent
9599b0ec3a
commit
7a7a6efc25
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user