aboutsummaryrefslogtreecommitdiffstats
path: root/src/call-id.lisp
diff options
context:
space:
mode:
authorTeddy Wing2021-03-02 20:41:44 +0100
committerTeddy Wing2021-03-02 20:41:44 +0100
commitec04757717f79287b62f012fabb7d1c959dc6795 (patch)
tree218d12a49047dff2552853602bb6607e279388fe /src/call-id.lisp
parent241947b61a6df43943f6319dd274fdc0312685b3 (diff)
downloadextreload-ec04757717f79287b62f012fabb7d1c959dc6795.tar.bz2
main: Exit on Control-c interrupt
Use the `with-user-abort` library to catch an interrupt signal from `<C-c>` and exit immediately. Otherwise, the Lisp debugger is invoked, which is not the expected behaviour for a command line program. Tried putting the `user-abort` condition in the `handler-case` in `main`, but it didn't appear to be caught in my tests. Decided to catch it with `handler-case` immediately instead, confirming this works. Unfortunately, if `<C-c>` is received before entering `main` (by running the program and immediately pressing it), our handler won't get called, and instead the Lisp debugger will be invoked. Not sure how to deal with that, so I've decided not to bother.
Diffstat (limited to 'src/call-id.lisp')
0 files changed, 0 insertions, 0 deletions