Created
December 11, 2015 18:58
-
-
Save lizmat/04ed058084945a5c1e4b to your computer and use it in GitHub Desktop.
whenever not handling signal supplies ???
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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