From f1f60f281fcc7a700771cc55a7c3b74710f33c56 Mon Sep 17 00:00:00 2001 From: Tony Kuker Date: Sat, 30 Jan 2021 14:07:40 -0600 Subject: [PATCH] Updated ctapdriver to use the forked system call --- src/raspberrypi/devices/ctapdriver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/raspberrypi/devices/ctapdriver.cpp b/src/raspberrypi/devices/ctapdriver.cpp index 188fda41..098c20df 100644 --- a/src/raspberrypi/devices/ctapdriver.cpp +++ b/src/raspberrypi/devices/ctapdriver.cpp @@ -174,7 +174,7 @@ void FASTCALL CTapDriver::Cleanup() BOOL FASTCALL CTapDriver::Enable(){ int result; LOGDEBUG("%s: ip link set ras0 up", __PRETTY_FUNCTION__); - result = system("ip link set ras0 up"); + result = run_system_cmd("ip link set ras0 up"); return (result == EXIT_SUCCESS); } @@ -186,7 +186,7 @@ BOOL FASTCALL CTapDriver::Enable(){ BOOL FASTCALL CTapDriver::Disable(){ int result; LOGDEBUG("%s: ip link set ras0 down", __PRETTY_FUNCTION__); - result = system("ip link set ras0 down"); + result = run_system_cmd("ip link set ras0 down"); return (result == EXIT_SUCCESS); }