The function is pause()blocked until a signal is received. Assuming that the process received a signal and pause (), whether the signal handler processes to the code following the call pause(), or the result of a sudden?
Example:
void sigusr1_handler()
{
}
void main()
{
pause();
}
Will "still some code" be executed after completion, sigusr1_handler() or is there a race condition? If so, what is the solution?
I can think of nothing but lively, but then a pause will not be needed at all.
source
share