hi programmers!)
Please help me understand this -
as I understand from practice - the getting SIGALRM by process is ends the process - but I can't find the explanation of this guess.
for exp. -
I have code -
int main(void)
{
/* Установить будильник */
sleep(1);
if((alarm(5)) > 0)
printf("an alarm was already set"); else puts("know we've set the alarm - there wasn't any before.");
sleep(30);
puts("how did we get here?");
exit(EXIT_FAILURE);
}
we'll never see the message
how did we get here?
but whY?
thanks in advance)