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

cvs commit: src/sys/kern sys_generic.c


From: Simon Schubert <corecode@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 2 Aug 2007 06:29:42 -0700 (PDT)

corecode    2007/08/02 06:29:42 PDT

DragonFly src repository

  Modified files:
    sys/kern             sys_generic.c 
  Log:
  Fix select and poll use in LWPs.
  
  When select(2) or poll(2) puts to sleep a LWP, the LWP may never be woken up
  when the events waited for occur because the TID of the LWP is not saved in
  the selinfo structure by selrecord().
  
  si_tid is not initialised explicitly anywhere but happens to bet set to 0, so
  the problem was not apparent for the initial LWP created at process
  construction time.
  
  Submitted-by:  Nicolas Thery <nthery@gmail.com>
  DragonFly-bug: http://bugs.dragonflybsd.org/issue757
  
  Revision  Changes    Path
  1.45      +1 -0      src/sys/kern/sys_generic.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/sys_generic.c.diff?r1=1.44&r2=1.45&f=u



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