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));
        }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to