Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  6 Jun 2000 12:07:03 -0700 (PDT)
From:      odinn@atlantabiker.net
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/19069: ps exit(0) instead of exit(1) when nentries == 0
Message-ID:  <20000606190703.6F6DC37B580@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         19069
>Category:       bin
>Synopsis:       ps exit(0) instead of exit(1) when nentries == 0
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 06 12:10:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Jim Sloan
>Release:        4.0-Stable
>Organization:
>Environment:
ugw# uname -a
FreeBSD ugw.dhiac.com 4.0-STABLE FreeBSD 4.0-STABLE #0: Mon Jun  5 15:31:24 EDT 2000     root@ugw.dhiac.com:/usr/src/sys/compile/UGW  i386

>Description:
ps should error on exit when no entries are displayed.


>How-To-Repeat:
ps -p 99999999 (or any non-existant pid)
>Fix:
line 358 of /usr/src/bin/ps/ps.c
should be
     exit(1);

not
     exit(0);

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000606190703.6F6DC37B580>