Date: Mon, 9 May 2016 11:52:58 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r299256 - head/sys/compat/linuxkpi/common/src Message-ID: <201605091152.u49BqwPr051739@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605091152.u49BqwPr051739>