10
I need a clarification on sigsuspend topic. I have a simplified example
sigset_t mask, oldmask;
sigemptyset (&mask);
sigaddset (&mask, SIGRTMIN+1);
sigprocmask (SIG_BLOCK, &mask, &oldmask);
sigsuspend(&oldmask);
sigprocmask (SIG_UNBLOCK, &mask, NULL);
Here is how I understand this:
Secondly, let's suppose I have such sigsuspend in a loop and there arrived a few SIGRTMIN+1 signals. Will such loop continue for each signal ? in some kind of queue?
while(1){
sigsuspend(&oldmask)
printf("recieved signal");
}
so that for each signal I have 'recieved signal' printed?