I was wondering about following. If I have set of 3 signals. And they are all blocked.Now at some point in the program the set is unblocked. Which signal will be delivered first.This is my set....SIGTSTP,SIGQUIT,SIGINT.When I added them in the set and unblock them I did it in following order...
sigaddset(&mySet, SIGINT);
sigaddset(&mySet, SIGQUIT);
sigaddset(&mySet, SIGTSTP);
sigprocmask(SIG_UNBLOCK, &mySet, NULL);
Last cal will unblock all signals but which one will be delivered first. When I play with this it seems that SIGINT is the first one to be delivered.