From e54cc055ac62bbb74986baca509511fffe3aa84e Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Tue, 7 Apr 2020 03:08:54 -0700 Subject: [PATCH] HackStudio: pledge "thread" to fix opening files It looks like HackStudio got broken when clicking on a folder in the open file dialog. The thumbnail icons appear to be loaded on a new thread. --- DevTools/HackStudio/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DevTools/HackStudio/main.cpp b/DevTools/HackStudio/main.cpp index 92bbef59ae1..d69f6b9da7c 100644 --- a/DevTools/HackStudio/main.cpp +++ b/DevTools/HackStudio/main.cpp @@ -127,14 +127,14 @@ bool make_is_available(); int main(int argc, char** argv) { - if (pledge("stdio tty accept rpath cpath wpath shared_buffer proc exec unix fattr", nullptr) < 0) { + if (pledge("stdio tty accept rpath cpath wpath shared_buffer proc exec unix fattr thread", nullptr) < 0) { perror("pledge"); return 1; } GUI::Application app(argc, argv); - if (pledge("stdio tty accept rpath cpath wpath shared_buffer proc exec fattr", nullptr) < 0) { + if (pledge("stdio tty accept rpath cpath wpath shared_buffer proc exec fattr thread", nullptr) < 0) { perror("pledge"); return 1; }