DragonFly BSD
DragonFly commits List (threaded) for 2011-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: select(2)/kevent: Bail out immediately if EV_ERROR is set.


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 22 Sep 2011 21:11:18 -0700 (PDT)

commit 23a031e34d5e83e747ad3907f5e72c1175f7ad94
Author: Sepherosa Ziehau <sephe@dragonflybsd.org>
Date:   Fri Sep 23 11:54:02 2011 +0800

    select(2)/kevent: Bail out immediately if EV_ERROR is set.
    
    By setting *res to -1, if kevent registration failed, select(2)
    will return error properly.

Summary of changes:
 sys/kern/sys_generic.c |   25 +++++++++++++------------
 1 files changed, 13 insertions(+), 12 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/23a031e34d5e83e747ad3907f5e72c1175f7ad94


-- 
DragonFly BSD source repository



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