Skip to content

Commit

Permalink
fix daemon not run
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Applencourt committed Sep 30, 2024
1 parent a84fb5c commit 19c3b4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xprof/xprof.rb.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 19c3b4d

Please sign in to comment.