fork() friendly signal management