hbp_nrp_watchdog.Watchdog module

This module contains a small python program that checks the availability of a local program

class Watchdog(process, callback, pid=None, interval=1)[source]

Bases: object

This class implements a watchdog that regularly checks whether a given process is still alive

property pid

The process id that is watched for


Resets the watched pid


Starts the watchdog in a new thread


Stops the watchdog