Converted signal handlers to sigaction(), and they all seem to work now.