Question: 11. The program shown below sets up a signal handler. Fill in the information requested in questions (a) through (d) to complete the program. //

11. The program shown below sets up a signal handler. Fill in the information requested in questions (a) through (d) to complete the program. // Prototypes void timeDisplay(int signal); // Signal handler // ******************************************** int main(void) { struct sigaction timeAction; int status; // a) Assign the correct identifier to the sa_handler field timeAction.sa_handler = ____ ; // b) Assign the correct value to the sa_flags field timeAction.sa_flags = ____ ; // c) Pass the address of the sa_mask field of timeAction to sigemptyset status = sigemptyset(____); // d) Pass the address of timeAction as the second parameter of sigaction status = sigaction(SIGUSR1,____, NULL); // Enter an infinite loop while(1); return 0; } // End main

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!