Package rosunit :: Module pmon :: Class ProcessListener
[frames] | no frames]

Class ProcessListener

source code

object --+
         |
        ProcessListener

Listener class for ProcessMonitor

Instance Methods
 
process_died(self, process_name, exit_code)
Notifies listener that process has died.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

process_died(self, process_name, exit_code)

source code 

Notifies listener that process has died. This callback only occurs for processes that die during normal process monitor execution -- processes that are forcibly killed during ProcessMonitor shutdown are not reported.

Parameters:
  • process_name (str) - name of process
  • exit_code (int) - exit code of process. If None, it means that ProcessMonitor was unable to determine an exit code.