ack/lang/cem/ctest/ctsys/signal.c
1985-02-06 21:25:27 +00:00

12 lines
104 B
C

#include <signal.h>
foo()
{
printf("signal received\n");
}
main()
{
signal(SIGINT,foo);
while(1);
}