sigset_t s; // now s represents set of signals
sigemptyset(&s) ; // initialize this set and exclude all the signals from it.is it empty?
sigaddset(&s,SIGILL);//this set containts only SIGILL signal
sigprocmask(SIG_BLOCK,&s,NULL);//lost on this one
Can anyone see my comment in the code and tell me if I am right. Last sigprocmask i read in documentation but I didnt really understand it.
Any help would be great
In your third step you said "Blocking every signal in the set, i.e. adding SIGILL to the set of blocked signals".
Didn't we add SIGILL in previous step?If the set is empty then we only blocking SIGILL?
When we have empty set of signals does that mean there isn't any signals in it?