PidStopperLinux Class Reference

Stops or kills applications on Linux based on their pid. This ApplicationStopper stops (kill -15) or kills (kill -9) application processes on Linux. It should not be used on other operating systems, due to the usage of system calls. More...

#include <ArmarXCore/util/ScenarioManagerCommon/executor/PidStopperLinux.h>

+ Inheritance diagram for PidStopperLinux:

Public Member Functions

void kill (Data_Structure::ApplicationInstancePtr application) override
 Kills an application based on its pid. More...
 
void stop (Data_Structure::ApplicationInstancePtr application) override
 Stops an application based on its pid. More...
 

Detailed Description

Stops or kills applications on Linux based on their pid. This ApplicationStopper stops (kill -15) or kills (kill -9) application processes on Linux. It should not be used on other operating systems, due to the usage of system calls.

Definition at line 40 of file PidStopperLinux.h.

Member Function Documentation

◆ kill()

void kill ( Data_Structure::ApplicationInstancePtr  application)
overridevirtual

Kills an application based on its pid.

Uses kill -9.

Parameters
applicationapplication to be killed

Implements ApplicationStopper.

Definition at line 47 of file PidStopperLinux.cpp.

◆ stop()

void stop ( Data_Structure::ApplicationInstancePtr  application)
overridevirtual

Stops an application based on its pid.

Uses kill -15.

Parameters
applicationapplication to be killed

Implements ApplicationStopper.

Definition at line 34 of file PidStopperLinux.cpp.


The documentation for this class was generated from the following files: