Namespaces
Variants

SIGTERM, SIGSEGV, SIGINT, SIGILL, SIGABRT, SIGFPE

From cppreference.net
Utilities library
헤더 파일에 정의됨 <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 0으로 나누기와 같은 잘못된 산술 연산

참고 사항

추가 신호 이름 are specified by POSIX .

참고 항목

특정 시그널에 대한 시그널 핸들러를 설정합니다
(함수)
특정 시그널에 대한 시그널 핸들러를 실행합니다
(함수)
C documentation for signal types