cvs commit: src/bin/ps ps.c

Garance A Drosehn gad at FreeBSD.org
Mon May 31 19:03:25 PDT 2004


gad         2004/05/31 19:03:22 PDT

  FreeBSD src repository

  Modified files:
    bin/ps               ps.c 
  Log:
  Rewrite the kludge-option processing to improve how it handles a few
  more special situations.  This is the code which process `ps blah',
  when "blah" does not include a leading '-'.
  
  This change also removes a long-undocumented BACKWARD_COMPATIBILITY
  compile-time option, where:
       ps -options arg1 arg2
  (with no '-' on "arg1" and "arg2") was treated as:
      ps -options -N arg1 -M arg2
  
  This also changes `ps' to check for any additional arguments after
  processing all the '-'-options, and attempt to use those arguments as
  a pid or pidlist.  If an extra argument is not a valid pidlist, then
  `ps' will print an error and exit.  This seems a more generally useful
  extension of the kludge-option processing than the -N/-M behavior, and
  has fewer confusing side-effects.
  
  Reviewed by:    freebsd-arch
  
  Revision  Changes    Path
  1.92      +91 -62    src/bin/ps/ps.c


More information about the cvs-src mailing list