intel / collision-avoidance-library

A framework for testing and benchmarking collision avoidance strategies
Apache License 2.0
81 stars 39 forks source link

Suppress kill msg and trap keyboard interrupt #10

Closed guiccbr closed 7 years ago

guiccbr commented 7 years ago

closes #9 closes #3

Shell outputs a 'job killed' message that needs to be suppressed in orther for silent-kill to work as expected. Those messages have been suppressed with the 'wait' command - that is called subsequently to a successful "kill -KILL" command.

Ctrl-C has also been trapped in order to make sure all child jobs terminate properly in case the user aborts the execution of the script.

Signed-off-by: Guilherme Campos Camargo guilherme.campos.camargo@intel.com