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

 
 

bug #17135: ps's return value

Submitted by:  Thomas Schwinge <tschwinge>
Submitted on:  Mon 17 Jul 2006 10:03:32 AM UTC  
 
Category: HurdSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Thomas Schwinge <tschwinge>Originator Name: 
Open/Closed: ClosedReproducibility: None
Size (loc): NonePlanned Release: None
Effort: 0.00
Wiki-like text discussion box: 

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 24 Jul 2006 09:00:47 PM UTCtschwingeStatusNone=>Fixed
  Assigned toNone=>tschwinge
  Open/ClosedOpen=>Closed
Sun 23 Jul 2006 11:00:07 PM UTCbenasselstineAttached File-=>Added hurd-ps-retval-20060723.patch, #10407

Back to the top


Powered by Savane 3.1-cleanup1