[리눅스커널] 시그널 전달: get_signal() 함수 분석

Guillermo Austin Kim|2019년 8월 21일
Posts

[리눅스커널] 시그널 전달: get_signal() 함수 분석

Guillermo Austin Kim|2019년 8월 21일

get_signal() 함수는 시그널 처리 과정의 핵심 역할이며 다음과 같은 처리를 합니다.  펜딩된 시그널 정보 가져오기 ftrace 메세지 출력 시그널 핸들러 설정 유무 파악 스레드 그룹 종료 이어서 get_signal() 함수를 분석합시다. [https://github.com/raspberrypi/linux/blob/rpi-4.19.y/kernel/signal.c]1 int get_signal(struct ksignal *ksig)2 {3 struct sighand_struct *sighand = current->sighand;4 struct signal_struct *signal = current->signal;5 int signr;...6 for (;;) {7 struct k_