Java Mailing List Archive

http://www.redhatconfig.com/

Home » Red Hat Enterprise Linux 5 »

[rhelv5-list] Re: Bash "kill -0" behavior

Chris Adams

2008-03-19

Replies:

Author LoginPost Reply
Once upon a time, Jos Vos <jos@(protected):
> What bash does:
> kill -0 <PIDS> succeeds if one or more of the pid parameters is valid
>
> I couldn't find a complete spec of what is correct/wrong in any formal
> UNIX spec till now.

SUSv3 says:

EXIT STATUS
  The following exit values shall be returned:

  0  At least one matching process was found for each pid operand,
 and the specified signal was successfully processed for at least
 one matching process.

  >0 An error occurred.

So it would seem bash is not following the standard. If even one PID is
invalid, it should be an error.
--
Chris Adams <cmadams@(protected)>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.

_______________________________________________
rhelv5-list mailing list
rhelv5-list@(protected)
https://www.redhat.com/mailman/listinfo/rhelv5-list
©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.