DragonFly BSD
DragonFly bugs List (threaded) for 2010-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: select() hangs on EOF


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 22 Aug 2010 15:33:44 -0700 (PDT)

:Hi,
:
:lang/guile no longer works since the recent kevent changes.
:The problem is that select() for read now hangs when a fd on a local
:file has reached EOF.
:
:The following test program shows the issue (touch foo.txt before
:running):

    Ok, since kqueue expects a read event only when not at the EOF
    and select/poll (historically) always return an immediate event
    regardless of the file seek position, for regular files, I have
    adjusted the kernel and filesystem code to make the distinction.

						-Matt



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]