aboutsummaryrefslogtreecommitdiffstats
path: root/src/email.lisp
diff options
context:
space:
mode:
authorTeddy Wing2022-05-21 18:48:09 +0200
committerTeddy Wing2022-05-21 18:56:58 +0200
commit165af78b4f7955870d0b3f6dd029768380661be4 (patch)
treef022637205683306024df348a3b9c787cd9924d2 /src/email.lisp
parent3307447f4a5c361fc2812244cd20c3bbe9a91bdc (diff)
downloadwajir-165af78b4f7955870d0b3f6dd029768380661be4.tar.bz2
main: Exit on Control-c
Use `with-user-abort` to exit on a Control-c SIGINT. Used the following tutorial for inspiration: https://stevelosh.com/blog/2021/03/small-common-lisp-cli-programs/#s12-errors Apparently Control-c should exit with code 130 according to this: https://tldp.org/LDP/abs/html/exitcodes.html Followed these Stack Overflow answers to turn off the interactive debugger in an implementation independent way: https://stackoverflow.com/questions/3074586/how-to-turn-off-the-debugger-in-sbcl/3074698#3074698 https://stackoverflow.com/questions/69280179/unmatched-close-parenthesis-when-sbcl-debugger-is-turned-off This still opens the interactive debugger if Control-c is pressed before `(main)` is called, but I don't know if there's any way to prevent that.
Diffstat (limited to 'src/email.lisp')
0 files changed, 0 insertions, 0 deletions