SIGTERM, SIGSEGV, SIGINT, SIGILL, SIGABRT, SIGFPE
From cppreference.net
C++
Utilities library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Program support utilities
| Program termination | |||||||||||||||||||||
|
|||||||||||||||||||||
| Unreachable control flow | |||||||||||||||||||||
|
(C++23)
|
|||||||||||||||||||||
| Communicating with the environment | |||||||||||||||||||||
| Signals | |||||||||||||||||||||
| Signal types | |||||||||||||||||||||
|
|
||||||||||||||||||||
| Non-local jumps | |||||||||||||||||||||
| Types | |||||||||||||||||||||
|
ヘッダーで定義
<csignal>
|
||
|
#define SIGTERM /*implementation defined*/
|
||
|
#define SIGSEGV /*implementation defined*/
|
||
|
#define SIGINT /*implementation defined*/
|
||
|
#define SIGILL /*implementation defined*/
|
||
|
#define SIGABRT /*implementation defined*/
|
||
|
#define SIGFPE /*implementation defined*/
|
||
上記の各マクロ定数は、それぞれ異なる値を表す整数定数式に展開され、プログラムに送信される異なるシグナルを表します。
| 定数 | 説明 |
SIGTERM
|
プログラムに送信される終了要求 |
SIGSEGV
|
無効なメモリアクセス(セグメンテーションフォルト) |
SIGINT
|
外部割り込み(通常ユーザーによって開始) |
SIGILL
|
無効なプログラムイメージ(例:無効な命令) |
SIGABRT
|
異常終了条件(例: std::abort() によって開始) |
SIGFPE
|
ゼロ除算などの不正な算術演算 |
注記
追加のシグナル名 はPOSIXで規定されています 。
関連項目
|
特定のシグナルに対するシグナルハンドラを設定する
(関数) |
|
|
特定のシグナルに対するシグナルハンドラを実行する
(関数) |
|
|
Cドキュメント
を参照
シグナルタイプ
|
|