$OpenBSD: patch-xpcom_base_nsDebugImpl_cpp,v 1.2 2018/09/05 16:19:01 landry Exp $

neuter KERN_PROC sysctl when running w/ pledge
https://hg.mozilla.org/mozilla-central/rev/3ad8c54c6dc8

Index: xpcom/base/nsDebugImpl.cpp
--- xpcom/base/nsDebugImpl.cpp.orig
+++ xpcom/base/nsDebugImpl.cpp
@@ -180,6 +180,10 @@ nsDebugImpl::GetIsDebuggerAttached(bool* aResult)
 {
   *aResult = false;
 
+#if defined(__OpenBSD__) && defined(MOZ_SANDBOX)
+//  printf_stderr("%s called when pledged, noop\n", __func__);
+  return NS_OK;
+#endif
 #if defined(XP_WIN)
   *aResult = ::IsDebuggerPresent();
 #elif defined(XP_MACOSX) || defined(__DragonFly__) || defined(__FreeBSD__) \
