You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2022/05/21 23:31:40 UTC

[whimsy] branch master updated: Still having issues with stale chrome processes

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 72c9b21a Still having issues with stale chrome processes
72c9b21a is described below

commit 72c9b21a8f4e0875e72fe6597b09c1b3560f0a5c
Author: Sebb <se...@apache.org>
AuthorDate: Sun May 22 00:31:34 2022 +0100

    Still having issues with stale chrome processes
---
 tools/site-scan.rb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index 106b1ae7..ca218e6c 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -187,6 +187,10 @@ def exec_with_timeout(cmd, timeout)
     end
 
   rescue Timeout::Error
+    # Try to determine why the kill does not tidy the chrome processes
+    # Also whether a kill was actually issued!
+    puts "ERR: timeout scanning #{cmd[-1]}"
+    system("pstree -lp #{pid}")
     stderr = 'Timeout'
     Process.kill(-9, pid)
     Process.detach(pid)
@@ -198,7 +202,7 @@ def exec_with_timeout(cmd, timeout)
     rerr.close
   end
   return stdout, stderr, status
- end
+end
 
 #########################################################################
 # Main execution begins here