Skip to content

Instantly share code, notes, and snippets.

@lizmat
Created December 11, 2015 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lizmat/04ed058084945a5c1e4b to your computer and use it in GitHub Desktop.
Save lizmat/04ed058084945a5c1e4b to your computer and use it in GitHub Desktop.
whenever not handling signal supplies ???
# when run, I don't get to see "goodbye" whenever I press Control-C
react {
say "waiting for Ctrl-C";
whenever signal(SIGINT) {
say "\ngoodbye!";
done;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment