Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • drivers
  • input
  • evdev.c
Find file BlameHistoryPermalink
  • Henrik Rydberg's avatar
    Input: evdev - never leave the client buffer empty after write · e725a494
    Henrik Rydberg authored Jun 23, 2010
    
    
    When the client buffer is very small and wraps around a lot, it may
    well be that a write increases the head such that head == tail. If
    this happens between the point where a poll is triggered and the
    actual data is being read, there will be no data to read. This is
    confusing to applications, which might end up closing the file.
    
    This patch solves the problem by making sure the client buffer is
    never empty after writing to it.
    
    Signed-off-by: default avatarHenrik Rydberg <rydberg@euromail.se>
    Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
    e725a494
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7