A threaded handler for UNIX signals