diff seobeo/os/s_linux_edge.c @ 260:1f9877b637e9

Add Copilot-powered cyberpunk JRPG chat Integrate the production JRPG chat with Seobeo streaming, Deita persistence, and a Bazel-managed Copilot SDK and LiteLLM inference stack. Co-authored-by: Copilot <[email protected]>
author MrJuneJune <mrjunejune@users.noreply.github.com>
date Wed, 05 Aug 2026 09:19:41 -0700
parents 609d3c6aff4e
children
line wrap: on
line diff
--- a/seobeo/os/s_linux_edge.c	Wed Aug 05 09:19:41 2026 -0700
+++ b/seobeo/os/s_linux_edge.c	Wed Aug 05 09:19:41 2026 -0700
@@ -47,9 +47,9 @@
     return NULL;
   }
 
-  while (1)
+  while (!Seobeo_Web_Server_Is_Stopping())
   {
-    int n = epoll_wait(epfd, events, max_events, -1);  // Block indefinitely, kernel handles timeouts
+    int n = epoll_wait(epfd, events, max_events, 250);
     if (n < 0)
     {
       if (errno == EINTR)