'\" t .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de) .\" .\" 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. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" License. .\" Modified Sat Jul 24 17:34:08 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified Sun Jan 7 01:41:27 1996 by Andries Brouwer (aeb@cwi.nl) .\" Modified Sun Apr 14 12:02:29 1996 by Andries Brouwer (aeb@cwi.nl) .\" Modified Sat Nov 13 16:28:23 1999 by Andries Brouwer (aeb@cwi.nl) .\" .TH SIGNAL 7 "April 14, 1996" "Linux 1.3.88" "Linux Programmer's Manual" .SH NAME signal \- 有效信號的清單 .SH "描述 (DESCRIPTION)" 下面 列出 Linux 支持的 信號. 某些 信號 依賴於 體系結構(architecture). 首先, POSIX.1 描述了 下列 信號. .sp .PP .TS l c c l ____ lB c c l. 信號 值 動作 說明 SIGHUP \01 A 在控制終端上是掛起信號, 或者控制進程結束 SIGINT \02 A 從鍵盤輸入的中斷 SIGQUIT \03 C 從鍵盤輸入的退出 SIGILL \04 C 無效硬件指令 SIGABRT \06 C 非正常終止, 可能來自 \fIabort\fP(3) SIGFPE \08 C 浮點運算例外 SIGKILL \09 AEF 殺死進程信號 SIGSEGV 11 C 無效的內存引用 SIGPIPE 13 A 管道中止: 寫入無人讀取的管道 SIGALRM 14 A 來自 \fIalarm\fP(2) 的超時信號 SIGTERM 15 A 終止信號 SIGUSR1 30,10,16 A 用戶定義的信號 1 SIGUSR2 31,12,17 A 用戶定義的信號 2 SIGCHLD 20,17,18 B 子進程結束或停止 SIGCONT 19,18,25 繼續停止的進程 SIGSTOP 17,19,23 DEF 停止進程 SIGTSTP 18,20,24 D 終端上發出的停止信號 SIGTTIN 21,21,26 D 後臺進程試圖從控制終端(tty)輸入 SIGTTOU 22,22,27 D 後臺進程試圖在控制終端(tty)輸出 .TE 下面的 信號 定義 在 SUSv2 中, 而 POSIX.1 沒有 定義. .sp .PP .TS l c c l ____ lB c c l. 信號 值 動作 說明 SIGBUS 10,7,10 C 總線錯誤 (不正確的內存訪問) SIGPOLL A I/O就緒事件 (Sys V). 等同於SIGIO SIGPROF 27,27,29 A 系統資源定時器(Profiling timer)超時 SIGSYS 12,\-,12 C 用錯誤參數調用系統例程 (SVID) SIGTRAP 5 C 跟蹤/斷點自陷 SIGURG 16,23,21 B 套接口上出現 urgent 情況 (4.2 BSD) SIGVTALRM 26,26,28 A 虛擬超時時鐘 (4.2 BSD) SIGXCPU 24,24,30 C 超過了CPU時間限制 (4.2 BSD) SIGXFSZ 25,25,31 C 超過了文件大小限制 (4.2 BSD) .TE (這裏的 SIGSYS, SIGXCPU, SIGXFSZ, 以及 某些 系統上 的 SIGBUS, Linux 的 缺省動作 (到2.3.27版) 是 A(結束), 而 SUSv2 聲明是 C(結束且核心轉儲).) 下面 是 其他 幾個 信號. .sp .PP .TS l c c l ____ lB c c l. 信號 值 動作 說明 SIGIOT 6 C IOT 自陷. 等同於 SIGABRT SIGEMT 7,\-,7 SIGSTKFLT \-,16,\- A 協處理器堆棧錯誤 SIGIO 23,29,22 A I/O 有效信號 (4.2 BSD) SIGCLD \-,\-,18 等同於 SIGCHLD SIGPWR 29,30,19 A 電源無效 (System V) SIGINFO 29,\-,\- 等同於 SIGPWR SIGLOST \-,\-,\- A 文件鎖丟失 SIGWINCH 28,28,20 B 窗口大小調整信號 (4.3 BSD, Sun) SIGUNUSED \-,31,\- A 未使用的信號 (將成爲 SIGSYS) .TE 這裏的 \- 指 信號 不存在; 可能 給出 三個值, 第一個值 一般 用於 alpha 和 sparc, 中間的值 用於 i386, ppc 和 sh, 最後一個 是 mips 的. 信號29 在 alpha機上 是 .B SIGINFO / .B SIGPWR , 而在 sparc機上 是 .B SIGLOST .PP "動作(Action)"欄 的 字母 有 下列 含義: .IP A 缺省動作是結束進程. .IP B 缺省動作是忽略這個信號. .IP C 缺省動作是結束進程, 並且核心轉儲. .IP D 缺省動作是停止進程. .IP E 信號不能被捕獲. .IP F 信號不能被忽略. .PP (譯註: 這裏 "結束" 指 進程 終止 並 釋放資源, "停止" 指 進程 停止 運行, 但是 資源 沒有 釋放, 有可能 繼續 運行.) .SH "遵循 (CONFORMING TO)" POSIX.1 .SH BUGS .B SIGIO 和 .B SIGLOST 有 相同的 值. 後者 在 內核 源碼 中 被註釋 掉了, 但是 某些 軟件 構造的 進程 仍然 認爲 信號29 是 .BR SIGLOST . .SH "另見 (SEE ALSO)" .BR kill (1), .BR kill (2), .BR setitimer (2) .SH "[中文版維護人]" .B 徐明 .SH "[中文版最新更新]" .B 2000/10/15 第一版 .br .BR 2001/11/24 第一次修訂 .SH "《中國linux論壇man手冊頁翻譯計劃》:" .BI http://cmpp.linuxforum.net .SH "跋" .br 本頁面中文版由中文 man 手冊頁計劃提供。 .br 中文 man 手冊頁計劃:\fBhttps://github.com/man-pages-zh/manpages-zh\fR