Bug 429559 - Man page of "kill(1)" is missing a description of "kill -0" (and so does bash)
Summary: Man page of "kill(1)" is missing a description of "kill -0" (and so does bash)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: util-linux
Version: 4.6
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Karel Zak
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-01-21 17:20 UTC by David Tonhofer
Modified: 2008-07-24 20:01 UTC (History)
0 users

Fixed In Version: RHBA-2008-0751
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-07-24 20:01:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2008:0751 0 normal SHIPPED_LIVE util-linux bug fix update 2008-07-23 16:50:51 UTC

Description David Tonhofer 2008-01-21 17:20:37 UTC
The "kill -0 $pid" (kill ZERO) option is apparently not to send a signal to 
some process but to test whether the process is alive.

A quick look at the source code of kill(1) shows that if 0 is given as signal
number, the kill(2) system call is performed with 0 (simple passthrough). The
man page of kill(2) says "If sig is 0, then no signal is sent, but error
checking is still performed."

--> So, a remark to that effect should be in the kill(1) manpage.

Note that the called "kill" will probably rarely be "/bin/kill" but instead the
bash-builtin "kill". The bash manpage has the same problem as described.

Comment 1 Karel Zak 2008-01-28 14:19:42 UTC
Fixed in util-linux-ng upstream code. Thanks for your report.

Comment 2 RHEL Program Management 2008-03-26 22:27:52 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 7 errata-xmlrpc 2008-07-24 20:01:45 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2008-0751.html


Note You need to log in before you can comment on or make changes to this bug.