From f9db53870705f7c708e8fb93aed8dd636adafc94 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 2 Aug 2022 13:40:28 +0200 Subject: ucode: ignore exit exceptions A request handler might legitimately call `exit()`, don't raise a server error in this case. Signed-off-by: Jo-Philipp Wich Tested-by: Stijn Tintel --- ucode.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ucode.c b/ucode.c index 69da3da..e76f441 100644 --- a/ucode.c +++ b/ucode.c @@ -195,6 +195,9 @@ uh_ucode_exception(uc_vm_t *vm, uc_exception_t *ex) { uc_value_t *ctx; + if (ex->type == EXCEPTION_EXIT) + return; + printf("Status: 500 Internal Server Error\r\n\r\n" "Exception while executing ucode program %s:\n", current_prefix->handler); -- cgit v1.2.1