From 19c3b4ddb7f39777df402d91b34f975f54b04ada Mon Sep 17 00:00:00 2001 From: Thomas Applencourt Date: Mon, 30 Sep 2024 22:54:19 +0000 Subject: [PATCH] fix daemon not run --- xprof/xprof.rb.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xprof/xprof.rb.in b/xprof/xprof.rb.in index 404987f3..0a2ed09a 100755 --- a/xprof/xprof.rb.in +++ b/xprof/xprof.rb.in @@ -307,6 +307,8 @@ class Sync_daemon # we always call clean-up the daemon def self.open yield f = new + rescue Errno::ENOENT + exit(1) ensure # https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/EnsureReturn if f @@ -683,7 +685,7 @@ def trace_and_on_node_processing(usr_argv) launch_usr_bin(h, usr_argv) rescue Errno::ENOENT teardown_lttng(syncd) - exit(1) + raise end teardown_lttng(syncd)