ack/lang/cem/ctest/ctsys/signal.c

15 lines
135 B
C
Raw Normal View History

1985-02-06 21:25:27 +00:00
#include <signal.h>
char rcs_id[] = "$Header$" ;
1985-02-06 21:25:27 +00:00
foo()
{
printf("signal received\n");
}
main()
{
signal(SIGINT,foo);
while(1);
}