cvs commit: src/usr.bin/pkill pkill.1 pkill.c

Pawel Jakub Dawidek pjd at FreeBSD.org
Sun Mar 20 03:30:27 PST 2005


pjd         2005-03-20 11:30:26 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/pkill        pkill.1 pkill.c 
  Log:
  - Introduce '-S' option which allows to match system processes (pgrep only).
  - Rename IS_KERNPROC() macro to PSKIP() and extend its functionality.
    Now it'll skip calling process and system processes when -S is not given.
    As a side effect it fixes '-n' option. Before it was always matching
    calling process (because of missing 'if (kp->ki_pid == mypid)' check)
    and after that, calling process was ignored.
  - When '-l' option is given and there are no arguments, use p_comm as an
    arguments list (this is helpful for kernel threads matching).
  
  Reviewed by:    gad
  MFC after:      3 days
  
  Revision  Changes    Path
  1.13      +3 -1      src/usr.bin/pkill/pkill.1
  1.24      +18 -20    src/usr.bin/pkill/pkill.c


More information about the cvs-src mailing list