linux timer funtion code example Example: printf not working after signal() Try fflush(stdout) after printf().