Question
Develop a program that uses system call int kill(pid_t pid, int sig) to deliver signal SIGINT and signal SIGHQUIT. Provide pid_t pid from command line
-
Develop a program that uses system call int kill(pid_t pid, int sig) to deliver signal SIGINT and signal SIGHQUIT. Provide pid_t pid from command line to the program. Let the process sleep 3 seconds between delivering signal SIGINT and signal SIGHQUIT. Then run Program Example 4.4 at the end of Lecture 4 as a background job. Use your program to deliver signal SIGINT and signal SIGHQUIT to the process of Program Example 4.4.
Example 4.4 given ..
#include
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started