cvs commit: src/sys/kern sys_generic.c

Simon Schubert corecode at crater.dragonflybsd.org
Thu Aug 2 06:30:23 PDT 2007


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 at 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





More information about the Commits mailing list