Linux Signal Handler in C++