'\" 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