orocos-toolchain / ocl

Orocos Component Library
Other
16 stars 33 forks source link

deployer: Also terminate cleanly on SIGTERM and SIGHUP #39

Closed meyerj closed 8 years ago

meyerj commented 8 years ago

Added a new method DeploymentComponent::waitForSignals() to wait for multiple signals.

The default waitForInterrupt() implementation installs three handlers for SIGINT, SIGTERM and SIGHUP now. SIGINT is typically only used to catch Ctrl-C on stdin, while external processes usually send the SIGTERM signal to request a shutdown (like the init daemon, roslaunch etc.).