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

reset()[source]

Resets the watched pid

start()[source]

Starts the watchdog in a new thread

stop()[source]

Stops the watchdog