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 6f745346 Show sub-processes for this process
6f745346 is described below

commit 6f745346b98a417142995f9f168a653944bef452
Author: Sebb <[email protected]>
AuthorDate: Mon Dec 18 11:34:53 2023 +0000

    Show sub-processes for this process
---
 tools/site-scan.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index 29eaff97..a2029492 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -225,7 +225,7 @@ def exec_with_timeout(cmd, timeout)
     stderr = 'Timeout'
     ret=''
     # Try to show process tree
-    cmd = "ps -lfg #{pid}"
+    cmd = "ps -lfg #{$$}"
     begin
       $stderr.puts "WARN:  #{Time.now} #{cmd}:"
       $stderr.puts `#{cmd}`

Reply via email to