From e25dc076628b25366380a48333172618bbe36f49 Mon Sep 17 00:00:00 2001 From: "Addisu Z. Taddese" Date: Thu, 17 Mar 2022 14:23:59 -0500 Subject: [PATCH] Use exec instead of popen to run ign-launch binary Signed-off-by: Addisu Z. Taddese --- src/cmd/cmdlaunch.rb.in | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/cmd/cmdlaunch.rb.in b/src/cmd/cmdlaunch.rb.in index 0e44e756..6f28304e 100755 --- a/src/cmd/cmdlaunch.rb.in +++ b/src/cmd/cmdlaunch.rb.in @@ -14,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -require 'open3' - # Constants. LIBRARY_VERSION = '@PROJECT_VERSION_FULL@' COMMANDS = { @@ -50,16 +48,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