Signal

youngwiki
Pinkgo (토론 | 기여)님의 2025년 3월 15일 (토) 16:22 판 (개요)

상위 문서: Signals and Nonlocal jumps

개요

signal이란 시스템에서 어떤 종류의 이벤트가 발생했음을 프로세스에 알리는 작은 메시지이다. signal은 이를 위해서 kernel에서 process로 보내지며, signal type은 1~30의 정수로 식별된다. 이때 어떤 signal에 저장된 정보는 해당 ID와 그 signal이 도착했다는 사실 뿐이다. 아래는 몇가지 signal ID와 그에 대응되는 signal들을 나타낸 표이다.

ID Name Default Action Corresponding Event
2 SIGINT Terminate User typed ctrl-c
9 SIGKILL Terminate Kill program(cannot override or ignore)
11 SIGSEGV Terminate Segmentation violation
14 SIGALRM Terminate Timer Signal
17 SIGCHLD Ignore Child stopped or terminated


각주