CVSROOT:        /cvs
Module name:    src
Changes by:     guent...@cvs.openbsd.org        2012/02/14 21:26:27

Modified files:
        sys/sys        : filedesc.h 
        sys/kern       : exec_script.c kern_descrip.c kern_event.c 
                         kern_exec.c sys_generic.c 
        sys/dev        : systrace.c 
        sys/crypto     : cryptodev.c 

Log message:
Hold struct filedesc's fd_lock when writing to the fd_ofiles, fd_ofileflags,
or fd_{lo,hi}maps members, or when doing a read for a write.  Fixes hangs
when an rthreaded processes sleeps while copying the fd table for fork()
and catches another thread with the lock.

ok jsing@ tedu@

Reply via email to