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
This commit is contained in:
parent
c34ed7382c
commit
0754e66c54
@ -671,7 +671,7 @@ linux_file_poll(struct file *file, int events, struct ucred *active_cred,
|
||||
else
|
||||
revents = 0;
|
||||
|
||||
return (0);
|
||||
return (revents);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user