From d4f87d6e68f12a188aa7a5254a5f88cdc5305260 Mon Sep 17 00:00:00 2001 From: Thomas Applencourt Date: Thu, 24 Oct 2024 19:15:38 +0000 Subject: [PATCH] correct usage --- xprof/xprof.rb.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xprof/xprof.rb.in b/xprof/xprof.rb.in index bc6873d7..c2cab278 100755 --- a/xprof/xprof.rb.in +++ b/xprof/xprof.rb.in @@ -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