Author: hselasky Date: Mon May 9 11:52:57 2016 New Revision: 299256 URL: https://svnweb.freebsd.org/changeset/base/299256
Log: Fix file polling bug. Ensure the actual poll result is returned by the "linux_file_poll()" function instead of zero which means no data is available. MFC after: 3 days Sponsored by: Mellanox Technologies Modified: head/sys/compat/linuxkpi/common/src/linux_compat.c Modified: head/sys/compat/linuxkpi/common/src/linux_compat.c ============================================================================== --- head/sys/compat/linuxkpi/common/src/linux_compat.c Mon May 9 11:48:09 2016 (r299255) +++ head/sys/compat/linuxkpi/common/src/linux_compat.c Mon May 9 11:52:57 2016 (r299256) @@ -671,7 +671,7 @@ linux_file_poll(struct file *file, int e else revents = 0; - return (0); + return (revents); } static int _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"