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

More information about the Commits mailing list