From 2c76926e8365d53b1d5bf2b464d24daf1bfd56fb Mon Sep 17 00:00:00 2001 From: emil Date: Wed, 7 Sep 2022 15:15:56 -0400 Subject: [PATCH] fix: epoll_wait causing crash on client pipe break --- runtime/src/listener_thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/src/listener_thread.c b/runtime/src/listener_thread.c index 31d8e4b..dc328b4 100644 --- a/runtime/src/listener_thread.c +++ b/runtime/src/listener_thread.c @@ -161,8 +161,8 @@ panic_on_epoll_error(struct epoll_event *evt) if (getsockopt(evt->data.fd, SOL_SOCKET, SO_ERROR, (void *)&error, &errlen) == 0) { panic("epoll_wait: %s\n", strerror(error)); } - panic("epoll_wait"); - }; + debuglog("epoll_error: Most likely client disconnected. Closing session."); + } } static void