Assignments 2- 2021
Phase 2 All teams, please study: https://linux-kernel-lab.blogspot.com/2018/06/block-and-unblock-process-assignment.html Team 1 - process hierachy Study: -V52: https://www.youtube.com/watch?v=tSnT9SYAb9A Create the system call pid_father() which returns the pid of the father (see task_struct). Make init creates one child which creates one grandson. Both init and grandson continually prints "init" and father's pid, however, the child process, exits. What happens to the grandson parent? Study the linux source code and show how the kernel changes the grandson's father. Team 2 - signal Study the following code: #include<stdio.h> #include<signal.h> void bypass_sigint(int sig_no) { printf("divide by zero\n"); } int main() { int a,b,c; struct sigaction sa; memset(&sa, 0, sizeof(sa)); sa.sa_handler = &bypass_sigint; sigaction(SIGFPE, &sa,NULL); while (1) { ...