Default signal handlers weren't being installed; amazing that this has been broken ever since I rearranged the signal handling code.