Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Apr 2003 22:58:51 -0700 (PDT)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern subr_bus.c
Message-ID:  <200304210558.h3L5wpRX030263@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
imp         2003/04/20 22:58:51 PDT

  FreeBSD src repository

  Modified files:
    sys/kern             subr_bus.c 
  Log:
  Fix /dev/devctl's implementation of poll.  We should only be setting
  the poll bits when there's actually something in the queue.
  Otherwise, select always returned '2' when there were no items to be
  read, and '3' when there were.  This would preclude being able to read
  in a threaded (libc_r) program, as well as checking to see if there
  were pending events or not.
  
  Revision  Changes    Path
  1.126     +5 -11     src/sys/kern/subr_bus.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304210558.h3L5wpRX030263>