From 2583221117d1502c22cc36256d4fec2d11763eaf Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 15 Oct 2023 17:42:04 +0000 Subject: [PATCH] I guess this works? Not sure what's wrong with AF_UNIX on iOS. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4521 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/main.c | 1 + src/taskstub.js.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 54135f4b..251cc49a 100644 --- a/src/main.c +++ b/src/main.c @@ -672,6 +672,7 @@ void tf_run_thread_start(const char* zip_path) .https_port = 12346, .ssb_port = 8008, .db_path = k_db_path_default, + .one_proc = true, .zip = zip_path, }; *data = (tf_run_thread_data_t) diff --git a/src/taskstub.js.c b/src/taskstub.js.c index 56d61b6b..752c291d 100644 --- a/src/taskstub.js.c +++ b/src/taskstub.js.c @@ -139,7 +139,7 @@ static JSValue _taskstub_create(JSContext* context, JSValueConst this_val, int a if (tf_task_get_one_proc(parent)) { uv_os_sock_t fds[2]; - int pipe_result = uv_socketpair(SOCK_STREAM, AF_UNIX, fds, 0, 0); + int pipe_result = uv_socketpair(SOCK_STREAM, 0, fds, 0, 0); if (pipe_result) { tf_printf("uv_socketpair failed: %s\n", uv_strerror(pipe_result));