#include <stdlib.h>
#include <stdio.h>
#include <signal.h>

void
termination_handler (int signum) {
    printf ("Performing kill task...\n");
    exit(0);
}

int main(int argc, char * argv[]) {

    signal(SIGINT, termination_handler);

    while(1==1);

    return 0;
}
