#include char rcs_id[] = "$Header$" ; foo() { printf("signal received\n"); } main() { signal(SIGINT,foo); while(1); }