From 711049c77b1b3ac708f86965e53280f134689263 Mon Sep 17 00:00:00 2001 From: dchagin Date: Sat, 9 Jan 2016 16:27:33 +0000 Subject: [PATCH] MFC r283434: Set WIFCONTINUED to the wait status if needed. --- sys/compat/linux/linux_misc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index e1db59eba9d8..b9218d84a700 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -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)); }