http://bugs.perl.org/perlbug.cgi?req=tid&tid=20000330.041 <pre> ------------------------------------------------------------------------------- Subject: Re: [PATCH 5.6.0] local $SIG{FOO} restoration TicketID: 20000330.041 Patch Ids: Created: 2000-03-30 11:59:41 Status: closed Version: 5 Category: notabug Fixed in: Severity: low Os: Admins: michaels Sourceaddr: Tom Christiansen <[EMAIL PROTECTED]> MessageIDs: 7392 NoteIDs: </pre> <pre> Messageid Ticketid ------------------------------------------------------------------------------- 7392 20000330.041 Messagebody: >i suppose the handler should not be restored if it was Perl's, something >along the lines of (on top of take2 patch): Exactly! this kind of thing is common in programs that do sigmasks or tty mode masks. The typical mistake is set noecho do something unset noecho or block sigfoo do something unblock sigfoo In both cases the bug is the same: you shouldn't undo something that was already undone to start with. --tom </pre>