[PATCH v2 05/28] Catch failures when installing signal handlers