Could some1 tell me what this program exactly does? Iv compiled and run it but cant seem to work out what exactly it does
#include <signalh>
#include <stdio.h>
#include <unistd.h>
void ouch(int sig)
{
printf("OUCH! ? I got signal %d\n, sig);
}
main()
{
signal(SIGINT, ouch);
while(1)
{
printf("Hello world\n");
sleep(1);
}
}