From 145a309c54b7a9ff46fc588783f58804c23b09ab Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 2 Aug 2022 13:40:28 +0200 Subject: [PATCH] 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 --- ucode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ucode.c b/ucode.c index e76f441..c03b6f0 100644 --- a/ucode.c +++ b/ucode.c @@ -199,8 +199,8 @@ uh_ucode_exception(uc_vm_t *vm, uc_exception_t *ex) return; printf("Status: 500 Internal Server Error\r\n\r\n" - "Exception while executing ucode program %s:\n", - current_prefix->handler); + "Exception while executing ucode program %s:\n", + current_prefix->handler); switch (ex->type) { case EXCEPTION_SYNTAX: printf("Syntax error"); break; -- 2.30.2