Skip to content

Commit

Permalink
Fix "update" in xprof in devel (#301)
Browse files Browse the repository at this point in the history
* update

* correct usage

---------

Co-authored-by: Thomas Applencourt <[email protected]>
  • Loading branch information
TApplencourt and Thomas Applencourt authored Oct 24, 2024
1 parent 64049c0 commit 615dd37
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions xprof/xprof.rb.in
Original file line number Diff line number Diff line change
Expand Up @@ -748,9 +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)
Logger.warn("#{pid} failed") unless $?.success?
_, 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 615dd37

Please sign in to comment.