use my_system instead of system

Origin commit data
------------------
Commit: bb2efeb45b
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-10-02 (Tue, 02 Oct 2012)
This commit is contained in:
Jacek Jendrzej
2012-10-02 12:42:31 +02:00
parent 72d855d2eb
commit 8c27ae6270
8 changed files with 80 additions and 60 deletions

View File

@@ -34,6 +34,8 @@
#include <driver/screen_max.h>
#include <system/debug.h>
#include <system/helpers.h>
#include <unistd.h>
#define TOUCH_BASE "/var/etc/."
@@ -70,18 +72,17 @@ CNetworkService::CNetworkService(std::string cmd, std::string opts)
void CNetworkService::Start()
{
std::string cmd = command + " " + options;
printf("CNetworkService::Start: %s\n", cmd.c_str());
system(cmd.c_str());
printf("CNetworkService::Start: %s %s\n", command.c_str(), options.c_str());
my_system( command.c_str(), options.c_str());
enabled = true;
TouchFile();
}
void CNetworkService::Stop()
{
std::string cmd = "killall " + command;
printf("CNetworkService::Stop: %s\n", cmd.c_str());
system(cmd.c_str());
const char killall []= "killall";
printf("CNetworkService::Stop: %s %s\n", killall, command.c_str());
my_system(killall, command.c_str());
enabled = false;
TouchFile();
}