tuxayo / unix_signals_handling_example

Unix signals handeling example as part of system programming classes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unix_signals_handeling_example

Unix signals handeling example as part of system programming classes

###What does it do? Ignores SIGQUIT and launch a function when SIGTERM is received. When processing SIGTERM, SIGUSR1 is blocked.

###How to compile? go to the folder and run "make"

How to test?

launch "unix_signals_handeling_example.run"

send SIGTERM with:

killall -TERM unix_signals_handeling_example.run

I let you guess how to send SIGQUIT or SIGUSR1 ;-)

About

Unix signals handeling example as part of system programming classes

License:GNU General Public License v3.0


Languages

Language:C++ 100.0%