bugThe GNU Hurd - Bugs: bug #17135, ps's return value

 
 

bug #17135: ps's return value

Submitter:  Thomas Schwinge <tschwinge>
Submitted:  Mon 17 Jul 2006 10:03:32 AM UTC
   
 
Category:  Hurd Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  tschwinge Originator Name: 
Open/Closed:  Closed Reproducibility:  None
Size (loc):  None Planned Release:  None
Effort:  0.00
Wiki-like text discussion box: 


* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 24 Jul 2006 09:00:47 PM UTC, comment #2: 

I just committed the following:

#v+
2006-07-24  Ben Asselstine  <benasselstine@canada.com>

[bug #17135]

  • psout.c (psout): Exit returning `1' if there aren't any applicable

processes.
#v-

Thanks for your contribution!

Thomas Schwinge <tschwinge>
Group administrator
Sun 23 Jul 2006 11:00:07 PM UTC, comment #1: 

Attached is a patch that fixes the bug.

Ben Asselstine <benasselstine>
Mon 17 Jul 2006 10:03:32 AM UTC, original submission:  

11:04 < azeem> hmm, ps returns a zero exit status if there is no applicable process for ps -p
11:04 < azeem> mbanck@beethoven:~$ ps -p 23
11:04 < azeem> ps: No applicable processes
11:04 < azeem> mbanck@beethoven:~$ echo $?
11:04 < azeem> 0
11:04 < azeem> Linux returns 1 in that case:
11:04 < azeem> castor~$ ps -p 24
11:04 < azeem>   PID TTY          TIME CMD
11:04 < azeem> castor~$ echo $?
11:04 < azeem> 1

Thomas Schwinge <tschwinge>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-07-24 tschwinge StatusNone Fixed
    Assigned toNone tschwinge
    Open/ClosedOpen Closed
2006-07-23 benasselstine Attached File- Added hurd-ps-retval-20060723.patch, #10407

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code