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

// typedef void (*sighandler_t)(int);

static void sig_handler(int sig){
    printf("Receive Signal is :%d",sig);
}

int main(int argc, char *argv[]){
    __sighandler_t  ret =NULL;
    ret = signal(SIGINT, sig_handler);
    if (SIG_ERR == ret) {
        perror("signal error");
        exit(-1);
    }
    while(1){
    }
    exit(0);

}