35 killAllShellCall(
"-15", application->getExecutableName());
41 killAllShellCall(
"-9", application->getExecutableName());
45Exec::ByNameStopperLinux::killAllShellCall(std::string sig, std::string executableName)
47 std::string strCommand =
"killall " + sig +
" \"" + executableName +
"\"";
48 const char* cCommand = strCommand.c_str();
49 int status = system(cCommand);
53 throw armarx::LocalException(
"Unsuccessfull shell command call. Tried to call \" " +
void kill(Data_Structure::ApplicationInstancePtr application) override
Stops an application based on its name.
void stop(Data_Structure::ApplicationInstancePtr application) override
Stops an application based on its name.
std::shared_ptr< ApplicationInstance > ApplicationInstancePtr