Caffe output redirection through tee , and pipes can change the way the OS works and transfers signals to processes. Try to avoid | tee | tee to make sure SIGINT reaches the coffee.
Please note that the caffe tool has two flags.
DEFINE_string(sigint_effect, "stop", "Optional; action to take when a SIGINT signal is received: " "snapshot, stop or none."); DEFINE_string(sighup_effect, "snapshot", "Optional; action to take when a SIGHUP signal is received: " "snapshot, stop or none.");
These flags can help you determine the behavior of caffe on SIGINT and SIGHUP .
source share