本文へ移動
QKQuickKitEN
LinuxLOCALブラウザ内で処理

Unix シグナル リファレンス

Linux シグナルの検索リファレンス。デフォルトアクション、キャッチ可否、終了ステータスコード付き。

入力と主要な処理をブラウザ内で行い、その入力内容をQuickKitサーバーへ送信しない設計です。

シグナル/終了ステータス検索

Unix シグナル リファレンス表

番号シグナル名デフォルトアクションキャッチ可能終了ステータス備考
1SIGHUP終了はい129Terminal hangup, or controlling process died. Widely reused to mean 'reload configuration', by convention only.
2SIGINT終了はい130Interrupt from keyboard (Ctrl-C).
3SIGQUIT終了+コアダンプはい131Quit from keyboard (Ctrl-\).
4SIGILL終了+コアダンプはい132Illegal instruction.
5SIGTRAP終了+コアダンプはい133Trace or breakpoint trap.
6SIGABRT終了+コアダンプはい134Abort, as raised by abort(3). SIGIOT is the same number.
7SIGBUS終了+コアダンプはい135Bus error (bad memory access).
8SIGFPE終了+コアダンプはい136Arithmetic exception, despite the name not only floating point.
9SIGKILL終了いいえ137Kill. Cannot be caught, blocked, or ignored.
10SIGUSR1終了はい138User-defined signal 1.
11SIGSEGV終了+コアダンプはい139Invalid memory reference.
12SIGUSR2終了はい140User-defined signal 2.
13SIGPIPE終了はい141Write to a pipe with no reader.
14SIGALRM終了はい142Timer signal from alarm(2).
15SIGTERM終了はい143Termination request. The default signal sent by kill(1).
16SIGSTKFLT終了はい144Stack fault on a coprocessor. Linux-specific and unused.
17SIGCHLD無視はい145Child stopped or terminated.
18SIGCONT継続はい146Continue if stopped.
19SIGSTOP停止いいえ147Stop process. Cannot be caught, blocked, or ignored.
20SIGTSTP停止はい148Stop typed at the terminal (Ctrl-Z).
21SIGTTIN停止はい149Background process attempted to read from the terminal.
22SIGTTOU停止はい150Background process attempted to write to the terminal.
23SIGURG無視はい151Urgent condition on a socket.
24SIGXCPU終了+コアダンプはい152CPU time limit exceeded.
25SIGXFSZ終了+コアダンプはい153File size limit exceeded.
26SIGVTALRM終了はい154Virtual alarm clock.
27SIGPROF終了はい155Profiling timer expired.
28SIGWINCH無視はい156Terminal window size changed.
29SIGIO終了はい157I/O now possible. SIGPOLL is the same number.
30SIGPWR終了はい158Power failure.
31SIGSYS終了+コアダンプはい159Bad system call. SIGUNUSED is the same number.
仕組みと使い方

Linux の標準シグナル(1-31、リアルタイムシグナル 34-64)のリファレンスです。各シグナルのデフォルトアクション、ブロック・キャッチの可否、プロセスがそのシグナルで終了した時の終了ステータスを示します。これらのシグナル番号は x86-64・ARM・ほとんどのアーキテクチャで使用される Linux asm-generic の定義に従います。Alpha・SPARC・MIPS・PA-RISC はいくつかのシグナルに異なる番号を割り当てています。ターゲットマシンで `kill -l` を実行して確認してください。SIGHUP が「設定をリロード」という意味は個々のデーモンが選んだ慣例であり、カーネルの定義ではありません。終了ステータス検索は 129-192 の値を受け入れ、対応するシグナルを報告します。128 + シグナル番号という式は bash/シェルの慣例であり、カーネルの値ではないため、通常のプログラムは任意の理由で 137 で終了する自由があります。