Bug 19069

Summary: ps exit(0) instead of exit(1) when nentries == 0
Product: Base System Reporter: odinn <odinn>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description odinn 2000-06-06 20:10:01 UTC
ps should error on exit when no entries are displayed.

Fix: 

line 358 of /usr/src/bin/ps/ps.c
should be
     exit(1);

not
     exit(0);
How-To-Repeat: ps -p 99999999 (or any non-existant pid)
Comment 1 Will Andrews freebsd_committer freebsd_triage 2000-07-08 06:15:46 UTC
State Changed
From-To: open->closed

Fixed in HEAD, RELENG_4, and RELENG_3.  Thanks!