diff seobeo/os/s_macos_edge.c @ 18:fa2b8af609d9

[Seobeo] Fixed a bug with pathing. Support SSL.
author June Park <parkjune1995@gmail.com>
date Mon, 06 Oct 2025 08:21:34 -0700
parents d97ec3ded2ae
children 875bb6e10db7
line wrap: on
line diff
--- a/seobeo/os/s_macos_edge.c	Sat Oct 04 07:53:12 2025 -0700
+++ b/seobeo/os/s_macos_edge.c	Mon Oct 06 08:21:34 2025 -0700
@@ -60,9 +60,10 @@
   pthread_t  threads[thread_count];
   for (int i = 0; i < thread_count; i++)
   {
-    WorkerArgs args = { p_server_handle, p_html_cache, kq };
-    pthread_create(&threads[i], NULL,
-                   Seobeo_Web_Edge_Worker, &args);
+    WorkerArgs *args = malloc(sizeof(WorkerArgs));
+    *args = (WorkerArgs){ p_server_handle, p_html_cache, kq };
+
+    pthread_create(&threads[i], NULL, Seobeo_Web_Edge_Worker, args);
   }
   for (int i = 0; i < thread_count; i++)
   {