Skip to content
Advertisement

Tag: alarm

Why is SIGALARM killing the Python program on Linux?

This programs prints Alive four times on stdout and then dies. While I am not handling the SIGALARM signal explicitly inside the program, I just expect the alarm to get ignored. However, on Linux, the script dies after the alarm is triggered. I have not been able to find any documentation for Linux which states that it should be the

“Alarm clock” message on linux

I’m working on a project written in C and I’m using alarms. In the beginning of the code I use sigaction() to initialize the alarm: Then I call the alarm with the alarm() function in a loop: The program sends the first alarm and runs the handler function, but when he sends the second one a message appears on the

Advertisement