Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Top Posters

Who's Online (1)

Powered by Vanilla. Made with Bootstrap.
A simple program to see signalhandler output
  • Here is a simple program to see the linux message when you press the ctrl+c

    #include<stdio.h>
    #include<signal.h>
    void sighandler(char signum);
    int main()
    {
    signal(SIGINT,(void*)sighandler);
    while(1)
    printf(\"iexploit.org\");
    }
    void sighandler(char signum)
    {
    printf(\"SIGINT received.Insisde sighandler\n\");
    }

    just run this program and press ctrl+c and then see whats the output comes..you can stop the program by pressing ctrl+z..and then use shif+pgup key to see the output.. To understand how signal works refer my article in off-topic..