cvs commit: src/sys/compat/svr4 svr4_misc.c src/sys/kern init_main.c kern_exit.c kern_resource.c kern_thread.c src/sys/sys proc.h

Attilio Rao attilio at FreeBSD.org
Sat Jun 9 18:56:12 UTC 2007


attilio     2007-06-09 18:56:11 UTC

  FreeBSD src repository

  Modified files:
    sys/compat/svr4      svr4_misc.c 
    sys/kern             init_main.c kern_exit.c kern_resource.c 
                         kern_thread.c 
    sys/sys              proc.h 
  Log:
  The current rusage code show peculiar problems:
  - Unsafeness on ruadd() in thread_exit()
  - Unatomicity of thread_exiit() in the exit1() operations
  
  This patch addresses these problems allocating p_fd as part of the
  process and modifying the way it is accessed.
  
  A small chunk of this patch, resolves a race about p_state in kern_wait(),
  since we have to be sure about the zombif-ing process.
  
  Submitted by: jeff
  Approved by: jeff (mentor)
  
  Revision  Changes    Path
  1.95      +5 -4      src/sys/compat/svr4/svr4_misc.c
  1.281     +5 -0      src/sys/kern/init_main.c
  1.302     +8 -31     src/sys/kern/kern_exit.c
  1.175     +3 -6      src/sys/kern/kern_resource.c
  1.248     +4 -6      src/sys/kern/kern_thread.c
  1.482     +1 -1      src/sys/sys/proc.h


More information about the cvs-src mailing list