C

Signals handling and pthreads in C application for Linux. Click to download source code with make file and Eclipse project files.  (That simple make file is also written by me). After the  archive has been decompressed  build the project and run the application:

make
./hireme -d 10000 -r 4 -t 20 -f “/bin/ls -al”

 

In this application  only two signals SIGSEGV and SIGINT are handled. But the framework for other signals is same.  To test how it works run application in a loop eg.

./hireme -d 10000 -r inf -t 4 -f “/bin/ls”  &

Send signal to the application:

killall -s SIGINT hireme
or
killall -s SIGSEGV hireme