Skip to content

Commit

Permalink
Use exec instead of popen to run ign-launch binary (#300)
Browse files Browse the repository at this point in the history
See gazebosim/gz-launch#151 for more context.

Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey authored Mar 23, 2022
1 parent 4daffb6 commit 59028a4
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/cmd/cmdtransport.rb.in
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,6 @@ class Cmd
end

# Drop command from list of arguments
Open3.popen2e(exe_name, *args[1..-1]) do |_in, out_err, wait_thr|
begin
out_err.each do |line|
print line
end
exit(wait_thr.value.exitstatus)
rescue Interrupt => e
print e.message
exit(-1)
end
end
exec(exe_name, *args[1..-1])
end
end

0 comments on commit 59028a4

Please sign in to comment.