I'm trying to understand a code which have the following lines:
void terminate_pipe(int);
code code code...
struct sigaction new_Sigiterm;
new_Sigiterm.sa_handler = terminate_pipe;
My question are:
What is the meaning of calling a function like this? Is it going to just put
NULL
as the parameter?It is void, so
new_Sigiterm.sa_handler
will beNULL
no matter what?
thanks.