Mercurial
comparison seobeo/os/s_macos_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 |
comparison
equal
deleted
inserted
replaced
| 259:667156fcd3e3 | 260:1f9877b637e9 |
|---|---|
| 21 .flags = EV_ADD, | 21 .flags = EV_ADD, |
| 22 .udata = args->srv | 22 .udata = args->srv |
| 23 }; | 23 }; |
| 24 kevent(kq, &kev, 1, NULL, 0, NULL); | 24 kevent(kq, &kev, 1, NULL, 0, NULL); |
| 25 | 25 |
| 26 while (1) | 26 while (!Seobeo_Web_Server_Is_Stopping()) |
| 27 { | 27 { |
| 28 int ne = kevent(kq, NULL, 0, evlist, 64, NULL); | 28 struct timespec timeout = { |
| 29 .tv_nsec = 250 * 1000 * 1000, | |
| 30 }; | |
| 31 int ne = kevent(kq, NULL, 0, evlist, 64, &timeout); | |
| 29 if (ne < 0) { | 32 if (ne < 0) { |
| 30 if (errno == EINTR) continue; | 33 if (errno == EINTR) continue; |
| 31 perror("kevent"); | 34 perror("kevent"); |
| 32 continue; | 35 continue; |
| 33 } | 36 } |