Changing signal(...) for sigaction(...) for better signal handle.