Skip to content

Instantly share code, notes, and snippets.

@derekparker
Last active October 13, 2015 05:18
Show Gist options
  • Save derekparker/4145545 to your computer and use it in GitHub Desktop.
Save derekparker/4145545 to your computer and use it in GitHub Desktop.
This is just a test for my blog
#include <stdlib.h>
#include <signal.h>
static void signal_handler(int sig){
puts("oh no!");
exit(EXIT_SUCCESS);
}
int main(int argc, const char **argv){
signal(SIGINT, signal_handler());
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment