signalhandler test. Take a look at signalhandler.cpp for details.