Trace 11
-
[Shell lab] Trace 08, Trace 10, Trace 11시스템 프로그래밍 2022. 11. 23. 01:30
Shell lab Trace 08 은 부모 프로세스가 sigint 를 수신하면 foreground 로 실행 중인 job 을 종료하는 문제입니다. myintp 의 소스 코드를 열어보면 다음과 같습니다. /* * myintp.c - Sends a SIGINT to its parent (the shell) * * A correctly written shell will echo the SIGINT back to the child. */ #include #include #include #include #include #include "config.h" void sigalrm_handler() { exit(0); } int main() { signal(SIGALRM, sigalrm_handler); alarm(JO..