diff options
author | Rene Ladan <rene@FreeBSD.org> | 2020-04-13 10:37:15 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2020-04-13 10:37:15 +0000 |
commit | e3b53fa1271f0ecfc6d650148fa6a2ce7fd59689 (patch) | |
tree | 4282b6dacc1a8a20ec4bc04900a236b3e3fb61a0 /www/chromium/files/patch-base_profiler_stack__copier__signal.cc | |
parent | Update java plugin. (diff) |
www/chromium: update to 81.0.4044.92
Currently the camera and geolocation do not work.
Submitted by: Matthias Wolf
Obtained from: https://github.com/gliaskos/freebsd-chromium/pull/173
Obtained from: https://github.com/gliaskos/freebsd-chromium/pull/174
MFH: 2020Q2
Security: https://www.vuxml.org/freebsd/6e3b700a-7ca3-11ea-b594-3065ec8fd3ec.html
Diffstat (limited to 'www/chromium/files/patch-base_profiler_stack__copier__signal.cc')
-rw-r--r-- | www/chromium/files/patch-base_profiler_stack__copier__signal.cc | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/www/chromium/files/patch-base_profiler_stack__copier__signal.cc b/www/chromium/files/patch-base_profiler_stack__copier__signal.cc index 6a2ff859b823..b9e757471f17 100644 --- a/www/chromium/files/patch-base_profiler_stack__copier__signal.cc +++ b/www/chromium/files/patch-base_profiler_stack__copier__signal.cc @@ -1,6 +1,6 @@ ---- base/profiler/stack_copier_signal.cc.orig 2020-03-03 18:53:47 UTC +--- base/profiler/stack_copier_signal.cc.orig 2020-04-10 00:33:01 UTC +++ base/profiler/stack_copier_signal.cc -@@ -4,10 +4,16 @@ +@@ -4,7 +4,14 @@ #include "base/profiler/stack_copier_signal.h" @@ -14,11 +14,8 @@ +#endif #include <signal.h> #include <sys/ucontext.h> --#include <syscall.h> - - #include <atomic> - -@@ -35,8 +41,13 @@ class AsyncSafeWaitableEvent { + #include <syscall.h> +@@ -35,8 +42,13 @@ class AsyncSafeWaitableEvent { // for a pthread mutex. So, also check the condition. while (true) { int res = @@ -32,7 +29,7 @@ if (futex_.load(std::memory_order_acquire) != 0) return true; if (res != 0) -@@ -46,8 +57,12 @@ class AsyncSafeWaitableEvent { +@@ -46,8 +58,12 @@ class AsyncSafeWaitableEvent { void Signal() { futex_.store(1, std::memory_order_release); @@ -45,7 +42,7 @@ } private: -@@ -201,11 +216,17 @@ bool StackCopierSignal::CopyStack(StackBuffer* stack_b +@@ -214,11 +230,18 @@ bool StackCopierSignal::CopyStack(StackBuffer* stack_b if (!scoped_sigaction.succeeded()) return false; @@ -57,6 +54,7 @@ } +#elif defined(OS_FREEBSD) + if (thr_kill2(getpid(), thread_delegate_->GetThreadId(), SIGURG) != 0) { ++ NOTREACHED(); + return false; + } +#endif |