OSDN Git Service

(split) LDP: Update release pages based on LDP 3.54 release
[linuxjm/LDP_man-pages.git] / release / man2 / kill.2
index fb58ebb..32ad07a 100644 (file)
@@ -1,7 +1,6 @@
-.\" Hey Emacs! This file is -*- nroff -*- source.
-.\"
 .\" Copyright (c) 1992 Drew Eckhardt (drew@cs.colorado.edu), March 28, 1992
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
@@ -21,6 +20,7 @@
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
 .\" Modified by Michael Haardt <michael@moria.de>
 .\" Modified by Thomas Koenig <ig25@rz.uni-karlsruhe.de>
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH KILL 2 2009\-09\-15 Linux "Linux Programmer's Manual"
+.\"
+.\" Japanese Version Copyright (c) 1997 Kazuyuki Tanisako
+.\"         all rights reserved.
+.\" Translated 1997-05-17, Kazuyuki Tanisako <tanisako@osa.dec-j.co.jp>
+.\" Modified 1997-05-27, Kazuyuki Tanisako <tanisako@osa.dec-j.co.jp>
+.\" Modified 1998-02-05, Kazuyuki Tanisako <tanisako@osa.dec-j.co.jp>
+.\" Updated 2001-12-27, Kentaro Shirakata <argrath@ub32.org>
+.\" Updated 2002-01-03, Kentaro Shirakata <argrath@ub32.org>
+.\" Updated 2002-09-27, Kentaro Shirakata <argrath@ub32.org>
+.\" Updated 2005-02-27, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
+.\" Updated 2005-12-05, Akihiro MOTOKI, Catch up to LDP man-pages 2.16
+.\" Updated 2008-08-06, Akihiro MOTOKI, LDP v3.05
+.\"
+.TH KILL 2 2013\-09\-17 Linux "Linux Programmer's Manual"
 .SH 名前
 kill \- プロセスにシグナルを送る
 .SH 書式
@@ -81,10 +94,12 @@ glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参
 \fIsig\fP に 0 を指定した場合、シグナルは送られないが、 エラーのチェックは行われる。これを使って、プロセス ID や プロセスグループ ID
 の存在確認を行うことができる。
 
-プロセスがシグナルを送信する許可を持つためには、 プロセスが特権 (Linux では \fBCAP_KILL\fP ケーパビリティ (capability))
-を持つか、 送信元プロセスの実ユーザー ID または実効ユーザー ID が 送信先プロセスの実 set\-user\-ID または保存
-set\-user\-ID と 等しくなければならない。 \fBSIGCONT\fP の場合、送信プロセスと受信プロセスが
-同じセッションに属していれば十分である。
+For a process to have permission to send a signal it must either be
+privileged (under Linux: have the \fBCAP_KILL\fP capability), or the real or
+effective user ID of the sending process must equal the real or saved
+set\-user\-ID of the target process.  In the case of \fBSIGCONT\fP it suffices
+when the sending and receiving processes belong to the same session.
+(Historically, the rules were different; see NOTES.)
 .SH 返り値
 成功した場合 (少なくとも一つのシグナルが送信された場合)、 0 が返される。エラーの場合 \-1 が返され、 \fIerrno\fP が適切に設定される。
 .SH エラー
@@ -115,18 +130,22 @@ POSIX.1\-2001 では以下の動作になることを要求している。 自
 .SS "Linux での注意"
 .\" In the 0.* kernels things chopped and changed quite
 .\" a bit - MTK, 24 Jul 02
-Linux では、特権のないプロセスが他のプロセスにシグナルを送信するために 必要な権限についてのルールが、カーネルバージョンにより違っている。
-カーネル 1.0 から 1.2.2 では、送信側の実効ユーザーID が受信側の 実効ユーザー IDと一致すればシグナルを送信できた。 カーネル
-1.2.3 から 1.3.77では、送信側の実効ユーザーID が受信側の 実ユーザーID か実効ユーザーID
-のいずれかと一致すればシグナルを送信できた。 現在のルールは、POSIX.1\-2001 に準拠しており、カーネル 1.3.78 以降で 適用されている。
+Across different kernel versions, Linux has enforced different rules for the
+permissions required for an unprivileged process to send a signal to another
+process.  In kernels 1.0 to 1.2.2, a signal could be sent if the effective
+user ID of the sender matched effective user ID of the target, or the real
+user ID of the sender matched the real user ID of the target.  From kernel
+1.2.3 until 1.3.77, a signal could be sent if the effective user ID of the
+sender matched either the real or effective user ID of the target.  The
+current rules, which conform to POSIX.1\-2001, were adopted in kernel 1.3.78.
 .SH バグ
 バージョン 2.6.7 以前の 2.6 系のカーネルには、 プロセスグループにシグナルを送ったときに、 呼び出し元のプロセスがプロセスグループの
-(全メンバーではなく) 一部のメンバー に対してのみシグナルを送る許可を持っている場合に、 \fBkill\fP()  がエラー \fBEPERM\fP
+(全メンバーではなく) 一部のメンバーに対してのみシグナルを送る許可を持っていない場合に、 \fBkill\fP()  がエラー \fBEPERM\fP
 で失敗するというバグがある。 このエラーが返るにもかかわらず、そのシグナルは呼び出し元が シグナルを送る許可を持つ全てのプロセスへ送られる。
 .SH 関連項目
 \fB_exit\fP(2), \fBkillpg\fP(2), \fBsignal\fP(2), \fBtkill\fP(2), \fBexit\fP(3),
 \fBsigqueue\fP(3), \fBcredentials\fP(7), \fBcapabilities\fP(7), \fBsignal\fP(7)
 .SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.40 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.54 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。