Skip to content

Commit

Permalink
correct usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Applencourt committed Oct 24, 2024
1 parent 2477dba commit d4f87d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xprof/xprof.rb.in
Original file line number Diff line number Diff line change
Expand Up @@ -748,8 +748,8 @@ def trace_and_on_node_processing(usr_argv)
if OPTIONS[:archive]
LOGGER.debug("Waiting for babeltrace_thapi and dirwatch (#{pids}) to finish")
pids.each do |pid|
Process.wait(pid)
XprofExitCode.update($?.exitstatus, "babeltrace_thapi or dirwatch #{pid}")
_, status = Process.wait2(pid)
XprofExitCode.update(status, "babeltrace_thapi or dirwatch #{pid}")
end
end
# we can kill the session daemon
Expand Down

0 comments on commit d4f87d6

Please sign in to comment.