aboutsummaryrefslogtreecommitdiff
path: root/devel/electron36/files/patch-electron_shell_browser_electron__browser__main__parts__posix.cc
blob: 7289abbb097953e08c214055f00eaa69f577f82f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- electron/shell/browser/electron_browser_main_parts_posix.cc.orig	2025-04-04 05:26:44 UTC
+++ electron/shell/browser/electron_browser_main_parts_posix.cc
@@ -192,12 +192,16 @@ void ElectronBrowserMainParts::InstallShutdownSignalHa
   g_pipe_pid = getpid();
   g_shutdown_pipe_read_fd = pipefd[0];
   g_shutdown_pipe_write_fd = pipefd[1];
+#if defined(OS_BSD)
+  const size_t kShutdownDetectorThreadStackSize = 0;
+#else
 #if !defined(ADDRESS_SANITIZER)
   const size_t kShutdownDetectorThreadStackSize = PTHREAD_STACK_MIN * 2;
 #else
   // ASan instrumentation bloats the stack frames, so we need to increase the
   // stack size to avoid hitting the guard page.
   const size_t kShutdownDetectorThreadStackSize = PTHREAD_STACK_MIN * 4;
+#endif
 #endif
   ShutdownDetector* detector = new ShutdownDetector(
       g_shutdown_pipe_read_fd, std::move(shutdown_callback), task_runner);