✺
이번 시간에 절에서는 시그널을 설정하면 유저 공간에서 커널 공간까지 어떤 흐름으로 처리하는지 소스 코드를 보면서 살펴 보겠습니다. 유저 레벨 프로세스에서 시그널 설정을 어떻게 하는지 소스 코드와 함께 살펴봅시다. 유저 공간에서 시그널을 설정하는 간단한 코드입니다.1 #include <unistd.h>2 #include <signal.h>3 #include <stdio.h>4 #include <stdlib.h>56 void sig_handler(int signum) {7 switch(signum) {8 case SIGINT:9 printf("sig num [%d] \n", signum);10 break;11 12 case SIGALRM:1