From 570b5a88ca6aa61c10b25647923e59524d062082 Mon Sep 17 00:00:00 2001
From: "Stephen R. van den Berg" <srb@cuci.nl>
Date: Wed, 15 Nov 2017 11:04:20 +0100
Subject: [PATCH] Debug.Inspect: Allow forced dumps.

---
 lib/modules/Debug.pmod/Inspect.pike | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/modules/Debug.pmod/Inspect.pike b/lib/modules/Debug.pmod/Inspect.pike
index b7119929ae..95a41b824f 100644
--- a/lib/modules/Debug.pmod/Inspect.pike
+++ b/lib/modules/Debug.pmod/Inspect.pike
@@ -100,7 +100,8 @@ private void loop(int sig) {
 }
 
 //! The internal function which does all the work each pollinterval.
-private void inspect() {
+//! Run it directly to force a thread-dump.
+void inspect() {
   Thread.MutexKey lock;
   if (lock = running->trylock(1)) {
     Thread.Thread thisthread = Thread.this_thread();
-- 
GitLab