aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-chrome_browser_shutdown__signal__handlers__posix.cc
diff options
context:
space:
mode:
authorMatthias Wolf <freebsd@rheinwolf.de>2021-10-19 19:33:45 +0000
committerRene Ladan <rene@FreeBSD.org>2021-10-19 19:39:45 +0000
commit336f302a55ad11465a4255ae250715b962639010 (patch)
treec3e9a3cf7406fdf5fdb0ab3c60d132043615c2d7 /www/chromium/files/patch-chrome_browser_shutdown__signal__handlers__posix.cc
parent6996a61924c2899cf68683451707bbed5d6b9794 (diff)
downloadports-336f302a55ad11465a4255ae250715b962639010.tar.gz
ports-336f302a55ad11465a4255ae250715b962639010.zip
Diffstat (limited to 'www/chromium/files/patch-chrome_browser_shutdown__signal__handlers__posix.cc')
-rw-r--r--www/chromium/files/patch-chrome_browser_shutdown__signal__handlers__posix.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/www/chromium/files/patch-chrome_browser_shutdown__signal__handlers__posix.cc b/www/chromium/files/patch-chrome_browser_shutdown__signal__handlers__posix.cc
new file mode 100644
index 000000000000..31ae26238090
--- /dev/null
+++ b/www/chromium/files/patch-chrome_browser_shutdown__signal__handlers__posix.cc
@@ -0,0 +1,15 @@
+--- chrome/browser/shutdown_signal_handlers_posix.cc.orig 2021-10-07 15:08:14 UTC
++++ chrome/browser/shutdown_signal_handlers_posix.cc
+@@ -186,7 +186,11 @@ void InstallShutdownSignalHandlers(
+ g_pipe_pid = getpid();
+ g_shutdown_pipe_read_fd = pipefd[0];
+ g_shutdown_pipe_write_fd = pipefd[1];
+-#if !defined(ADDRESS_SANITIZER)
++#if defined(OS_BSD)
++ // PTHREAD_STACK_MIN causes Chromium to crash under FreeBSD,
++ // we request the default pthread stack size by specifying 0 here.
++ const size_t kShutdownDetectorThreadStackSize = 0;
++#elif !defined(ADDRESS_SANITIZER)
+ const size_t kShutdownDetectorThreadStackSize = PTHREAD_STACK_MIN * 2;
+ #else
+ // ASan instrumentation bloats the stack frames, so we need to increase the