cvs commit: src/sys/kern kern_sig.c kern_synch.c src/sys/sys proc.h src/sys/vfs/procfs procfs_ctl.c

Simon Schubert corecode at crater.dragonflybsd.org
Mon Mar 12 14:08:23 PDT 2007


corecode    2007/03/12 14:08:15 PDT

DragonFly src repository

  Modified files:
    sys/kern             kern_sig.c kern_synch.c 
    sys/sys              proc.h 
    sys/vfs/procfs       procfs_ctl.c 
  Log:
  Rework stopping of procs.
  
  Before, proc_stop() would sleep until all running lwps stopped.  This
  break when a stop signal is actually coming from the console and is
  executed in the context of the idle thread.
  
  Now we count all sleeping threads as stopped and also set LWP_WSTOP to
  indicate so.  These threads will stop before return to userland.
  Running threads (including the current one) will eventually stop when
  returning to userland and will increase p_nstopped.  The last thread
  stopping will then send a signal to the parent process.
  
  Discussed-with:  Thomas E. Spanjaard <tgen at netphreax.net>
  
  Revision  Changes    Path
  1.76      +46 -30    src/sys/kern/kern_sig.c
  1.82      +19 -2     src/sys/kern/kern_synch.c
  1.105     +2 -1      src/sys/sys/proc.h
  1.16      +1 -1      src/sys/vfs/procfs/procfs_ctl.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_sig.c.diff?r1=1.75&r2=1.76&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_synch.c.diff?r1=1.81&r2=1.82&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/sys/proc.h.diff?r1=1.104&r2=1.105&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/vfs/procfs/procfs_ctl.c.diff?r1=1.15&r2=1.16&f=u





More information about the Commits mailing list