Exercises Give an example for each of these macros to explain its work: Macro: int WIFSIGNALED (int status) This macro returns a nonzero value if the child process terminated because it received a signal that was not handled.
Exercises
Give an example for each of these macros to explain its work:
Macro: int WIFSIGNALED (int status)
This macro returns a nonzero value if the child process terminated because it received a signal that
was not handled.
Macro: int WTERMSIG (int status)
If WIFSIGNALED is true of status, this macro returns the signal number of the signal that
terminated the child process.
Macro: int WCOREDUMP (int status)
This macro returns a nonzero value if the child process terminated and produced a core dump.
Macro: int WIFSTOPPED (int status)
This macro returns a nonzero value if the child process is stopped.
Macro: int WSTOPSIG (int status)
If WIFSTOPPED is true of status, this macro returns the signal number of the signal that caused
the child process to stop.
take screen shot for code and output in ubuntu kali
Step by step
Solved in 2 steps