Questions tagged [sigprocmask]
22 questions
0
votes
1 answer
Value of sigset_t after sigprocmask
From man sigprocmask:
"If oset is not null, it is set to the previous value of the signal mask."
My questions:
Without running or debugging the program,
After executing line 10, the value of the old signal mask is stored into y. Since there were…

Jordan
- 1
- 2
0
votes
1 answer
Delivery of Signal after sigprocmask
I'm under the impression that using sigprocmask() to unblock a signal will cause a pending blocked signal to be delivered to process.
In a specific case where sigprocmask() is used to unblock signals, if there is a pending signal (say SIGUSR1) that…

Killian
- 157
- 2
- 4
0
votes
1 answer
Signals in the "set" parameter of sigtimedwait() not getting delivered
I have been working on signal handling on Linux lately, and have read all the concepts related to signal handling. One question that's tinkering my head is that why the signal in the set of sigtimedwait() doesn't get delivered while the process is…

Shubham_K
- 78
- 5
0
votes
1 answer
What is the behavior of blocking a signal?
If I send a bunch of SIGIO signals to a process and that process block SIGIO signals and doing something else. When I unblock the signal, will there be only one SIGIO signal or multiple SIGIO signals in sequence?

user5574376
- 371
- 1
- 5
- 12
0
votes
1 answer
Sequential signals between two processes
I have a parent process and two children. The parent process only creates two children, a reader and a counter, and waits for its death. The children do the following things.
The first child (reader):
opens file,
reads a line,
sends a signal…

zodiac
- 353
- 3
- 18
0
votes
1 answer
sigprocmask not working
I'm using sigprocmask as follows:
void mask(){
sigset_t new_set,old_set;
sigemptyset(&new_set);
sigaddset(&new_set,SIGALRM);
sigprocmask(SIG_BLOCK, &new_set, &old_set);
}
and to my surprise a function which prints a big list…

EpsilonVector
- 3,973
- 7
- 38
- 62
0
votes
1 answer
Set mask with sigprocmask works only depending where called
I have a strange behavior where manpage and google didn't help out.
In my code I want to block / unblock SIGINT when SIGUSR2 is sent. For this I install the signal handler and prepare the set for mask in a function:
void installSignallHandler(){
…

timmornYE
- 708
- 2
- 8
- 22